mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-44017 Events: Deprecated content_viewed event
Replaced content_viewed event with appropriate events and deprecated content_viewed event
This commit is contained in:
parent
0a489777fc
commit
e1b16f9773
39 changed files with 1291 additions and 453 deletions
|
@ -71,10 +71,8 @@ $systemcontext = context_system::instance(); // SYSTEM context
|
|||
|
||||
// Trigger event.
|
||||
$event = \core\event\notes_viewed::create(array(
|
||||
'courseid' => $courseid,
|
||||
'relateduserid' => $userid,
|
||||
'context' => $coursecontext,
|
||||
'other' => array('content' => 'notes')
|
||||
'context' => $coursecontext
|
||||
));
|
||||
$event->trigger();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue