mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-45752 Course: Add additional events
This commit is contained in:
parent
0344082208
commit
768e3613a9
9 changed files with 462 additions and 2 deletions
|
@ -92,6 +92,11 @@ if (empty($searchcriteria)) {
|
|||
$searchform = $courserenderer->course_search_form($search, 'navbar');
|
||||
}
|
||||
$PAGE->set_button($searchform);
|
||||
|
||||
// Trigger event, courses searched.
|
||||
$eventparams = array('context' => $PAGE->context, 'other' => array('query' => $search));
|
||||
$event = \core\event\courses_searched::create($eventparams);
|
||||
$event->trigger();
|
||||
}
|
||||
|
||||
$PAGE->set_heading($site->fullname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue