Hi,
Running Moodle 2.8.1 and I am trying to create a local plugin that observers the quiz attempt submitted event. However, after following all instructions, it does not seem to work.
Next I tried to see if Moodle's standard event observers are working.
In mod/quiz/db/events.php there is:
array(I modified function quiz_attempt_submitted_handler($event) and added to the start:
'eventname' => '\mod_quiz\event\attempt_submitted',
'includefile' => '/mod/quiz/locallib.php',
'callback' => 'quiz_attempt_submitted_handler',
'internal' => false
),
print_r($event);After attempting a quiz and submitting it, this code was not executed.
error_log('Comes here'); die();
Does this mean that event observing is not working at all? And how can I go about resolving this?
Thank you in advance for any assistance.