MDL-53700 competency: Migrating observers to core
[moodle.git] / lib / db / events.php
index a9ccfc0..8045f8e 100644 (file)
@@ -54,6 +54,16 @@ $observers = array(
         'eventname'   => '\core\event\user_updated',
         'callback'    => 'core_badges_observer::profile_criteria_review',
     ),
+
+    // Competencies.
+    array(
+        'eventname'   => '\core\event\course_completed',
+        'callback'    => 'core_competency\api::observe_course_completed',
+    ),
+    array(
+        'eventname'   => '\core\event\course_module_completion_updated',
+        'callback'    => 'core_competency\api::observe_course_module_completion_updated',
+    ),
 );
 
 // List of all events triggered by Moodle can be found using Events list report.