. /** * Post-install code for the quiz module. * * @package mod * @subpackage quiz * @copyright 2011 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); $handlers = array( // Handle our own quiz_attempt_submitted event, as a way to send confirmation // messages asynchronously. 'quiz_attempt_submitted' => array ( 'handlerfile' => '/mod/quiz/locallib.php', 'handlerfunction' => 'quiz_attempt_submitted_handler', 'schedule' => 'cron', ), ); /* List of events generated by the quiz module, with the fields on the event object. quiz_attempt_started ->component = 'mod_quiz'; ->attemptid = // The id of the new quiz attempt. ->timestart = // The timestamp of when the attempt was started. ->userid = // The user id that the attempt belongs to. ->quizid = // The quiz id of the quiz the attempt belongs to. ->cmid = // The course_module id of the quiz the attempt belongs to. ->courseid = // The course id of the course the quiz belongs to. quiz_attempt_submitted ->component = 'mod_quiz'; ->attemptid = // The id of the quiz attempt that was submitted. ->timefinish = // The timestamp of when the attempt was submitted. ->userid = // The user id that the attempt belongs to. ->submitterid = // The user id of the user who sumitted the attempt. ->quizid = // The quiz id of the quiz the attempt belongs to. ->cmid = // The course_module id of the quiz the attempt belongs to. ->courseid = // The course id of the course the quiz belongs to. */