mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'wip-mdl-39955' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
969de2a200
10 changed files with 524 additions and 135 deletions
|
@ -37,18 +37,6 @@ defined('MOODLE_INTERNAL') || die();
|
|||
|
||||
$handlers = array(
|
||||
|
||||
'course_completed' => array (
|
||||
'handlerfile' => '/lib/badgeslib.php',
|
||||
'handlerfunction' => 'badges_award_handle_course_criteria_review',
|
||||
'schedule' => 'instant',
|
||||
'internal' => 1,
|
||||
),
|
||||
'activity_completion_changed' => array (
|
||||
'handlerfile' => '/lib/badgeslib.php',
|
||||
'handlerfunction' => 'badges_award_handle_activity_criteria_review',
|
||||
'schedule' => 'instant',
|
||||
'internal' => 1,
|
||||
),
|
||||
'user_updated' => array (
|
||||
'handlerfile' => '/lib/badgeslib.php',
|
||||
'handlerfunction' => 'badges_award_handle_profile_criteria_review',
|
||||
|
@ -73,7 +61,18 @@ $handlers = array(
|
|||
/* no more here please, core should not consume any events!!!!!!! */
|
||||
);
|
||||
|
||||
$observers = array(
|
||||
|
||||
array(
|
||||
'eventname' => '\core\event\course_module_completion_updated',
|
||||
'callback' => 'core_badges_observer::course_module_criteria_review',
|
||||
),
|
||||
array(
|
||||
'eventname' => '\core\event\course_completed',
|
||||
'callback' => 'core_badges_observer::course_criteria_review',
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
|
||||
/* List of events thrown from Moodle core
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue