Hi Javier,
If no one will answer here, please check in the General Developers forum. I think there are more people there who are familiar with programming
Gradebook
How to send grades to gradebook in moodle 2
This discussion has been locked so you can no longer reply to it.