I'm trying to work out how the grades API works. To add a grade item to the gradebook it seems that you use the 'grade_update' function. I want to pass several grades to the gradebook from one module the question creation module I'm working on will pass grades for each question created to the gradebook where the user is told that they must create x questions, I want to pass x grades to the gradebook.
It seems that I need to set itemnumber in the grade_items record to differentiate the different grades passed to the gradebook. Unfortunately itemnumber is not an 'allowed' param in the 'grade_update' function.
Are multiple grades from one module not yet supported in Moodle 1.9??
It seems that this is a bug. I submitted a bug to the bug tracker : MDL-11712
oops. Not a bug at all. I had a mistake in my code.
Hi Jamie
I am experimenting with 'grade_update()' ... having difficulties. Could you send a sample of the way you used this? I would certainly appreciate it.
Thanks