not possible to pass more than one grade from a module

not possible to pass more than one grade from a module

by Jamie Pratt -
Number of replies: 3
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??
In reply to Jamie Pratt

Re: not possible to pass more than one grade from a module

by Steve Cox -

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