mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-40047 events: Replace add_to_logs with new events in feedback
This commit is contained in:
parent
9c515cdcfb
commit
3f6fd94140
7 changed files with 57 additions and 43 deletions
|
@ -40,8 +40,9 @@ $context = context_course::instance($course->id);
|
|||
require_login($course);
|
||||
$PAGE->set_pagelayout('incourse');
|
||||
|
||||
add_to_log($course->id, 'feedback', 'view all', $url->out(false), $course->id);
|
||||
|
||||
// Trigger instances list viewed event.
|
||||
$event = \mod_feedback\event\instances_list_viewed::create(array('context' => $context));
|
||||
$event->trigger();
|
||||
|
||||
/// Print the page header
|
||||
$strfeedbacks = get_string("modulenameplural", "feedback");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue