You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

<?php
$observers = array(
// Eventos de cursos
array(
'eventname' => '\core\event\course_created',
'callback' => 'block_escola_modelo_observer::course_created'
),
array(
'eventname' => '\core\event\course_updated',
'callback' => 'block_escola_modelo_observer::course_updated'
),
array(
'eventname' => '\core\event\course_deleted',
'callback' => 'block_escola_modelo_observer::course_deleted'
),
// Eventos de categorias
array(
'eventname' => 'core\event\course_category_updated',
'callback' => 'block_escola_modelo_observer::course_category_updated'
),
// Eventos de certificados
array(
'eventname' => 'mod_certificate\event\certificates_created',
'callback' => 'block_escola_modelo_observer::certificates_created'
)
// ),
// // Eventos de matrícula a cursos
// array(
// 'eventname' => 'core\event\user_enrolment_created',
// 'callback' => 'block_escola_modelo_observer::user_enrolment_created'
// ),
// array(
// 'eventname' => 'core\event\user_enrolment_deleted',
// 'callback' => 'block_escola_modelo_observer::user_enrolment_deleted'
// ),
// array(
// 'eventname' => 'core\event\user_enrolment_updated',
// 'callback' => 'block_escola_modelo_observer::user_enrolment_updated'
//)
);