How to get grade of completed module?

Re: How to get grade of completed module?

by Mike Finch -
Number of replies: 0

Jira issue https://tracker.moodle.org/browse/MDL-48680 introduces two new events that are triggered when a SCORM module exits.

  • scoreraw_submitted
  • status_submitted

Since I am specifically interested in a SCORM module and not other types of modules, these events are just what I need.  The scoreraw_submitted event tells me the grade the student earned.  The status_submitted event tells me when the SCORM module has exited;  and, depending on how the SCORM content is created, the string value of the event may tell me whether the student "passed" or "failed".  But, for some SCORMs, the string value is always "completed" regardless of the grade.  That is good enough for my purposes.

These new events are available in Moodle 3.1.  So, I was compelled to upgrade from Moodle 3.0 to take advantage of them.