mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-40061 mod_data: replaced 'view all' add_to_log call with an event
This commit is contained in:
parent
b071cfd229
commit
7ddb347cec
2 changed files with 37 additions and 1 deletions
|
@ -39,7 +39,11 @@ $PAGE->set_pagelayout('incourse');
|
|||
|
||||
$context = context_course::instance($course->id);
|
||||
|
||||
add_to_log($course->id, "data", "view all", "index.php?id=$course->id", "");
|
||||
$params = array(
|
||||
'context' => context_course::instance($course->id)
|
||||
);
|
||||
$event = \mod_data\event\course_module_instance_list_viewed::create($params);
|
||||
$event->trigger();
|
||||
|
||||
$strname = get_string('name');
|
||||
$strdata = get_string('modulename','data');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue