-
-
Save sundeo1/c43ca555437388ed2cf3d2c7a4cb0e78 to your computer and use it in GitHub Desktop.
Contains functions for monitoring events inside Moodle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('MOODLE_INTERNAL') || die(); | |
$observers = array( | |
//Users | |
array( | |
'eventname' => '\core\event\user_created', | |
'callback' => 'local_test_observer::user_created', | |
), | |
array( | |
'eventname' => '\core\event\user_deleted', | |
'callback' => 'local_test_observer::user_deleted', | |
), | |
array( | |
'eventname' => '\core\event\user_password_updated', | |
'callback' => 'local_test_observer::user_password_updated', | |
), | |
array( | |
'eventname' => 'core\event\user_updated', | |
'callback' => 'local_test_observer::user_updated', | |
), | |
//Chapters | |
array( | |
'eventname' => '\mod_book\event\chapter_created', | |
'callback' => 'local_test_observer::chapter_created', | |
), | |
array( | |
'eventname' => '\mod_book\event\chapter_deleted', | |
'callback' => 'local_test_observer::chapter_deleted', | |
), | |
array( | |
'eventname' => '\mod_book\event\chapter_updated', | |
'callback' => 'local_test_observer::chapter_updated', | |
), | |
//Course | |
array( | |
'eventname' => '\core\event\course_created', | |
'callback' => 'local_test_observer::course_created', | |
), | |
array( | |
'eventname' => '\core\event\course_deleted', | |
'callback' => 'local_test_observer::course_deleted', | |
), | |
array( | |
'eventname' => '\core\event\course_module_created', | |
'callback' => 'local_test_observer::course_module_created', | |
), | |
array( | |
'eventname' => '\core\event\course_module_deleted', | |
'callback' => 'local_test_observer::course_module_deleted', | |
), | |
array( | |
'eventname' => '\core\event\course_module_updated', | |
'callback' => 'local_test_observer::course_module_updated', | |
), | |
array( | |
'eventname' => '\core\event\course_restored', | |
'callback' => 'local_test_observer::course_restored', | |
), | |
array( | |
'eventname' => '\core\event\course_updated', | |
'callback' => 'local_test_observer::course_updated', | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment