mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-44403 events: added public method to get eventdata
This commit is contained in:
parent
76e4de31cc
commit
24c32bdf2f
10 changed files with 85 additions and 73 deletions
|
@ -326,7 +326,6 @@ function groups_create_grouping($data, $editoroptions=null) {
|
|||
'objectid' => $id
|
||||
);
|
||||
$event = \core\event\grouping_created::create($params);
|
||||
$event->set_legacy_eventdata($data);
|
||||
$event->trigger();
|
||||
|
||||
return $id;
|
||||
|
@ -442,7 +441,6 @@ function groups_update_grouping($data, $editoroptions=null) {
|
|||
'objectid' => $data->id
|
||||
);
|
||||
$event = \core\event\grouping_updated::create($params);
|
||||
$event->set_legacy_eventdata($data);
|
||||
$event->trigger();
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue