diff options
Diffstat (limited to 'restorebackup.php')
-rw-r--r-- | restorebackup.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/restorebackup.php b/restorebackup.php index be466ef..75a6fb7 100644 --- a/restorebackup.php +++ b/restorebackup.php @@ -56,6 +56,10 @@ if (boolval($data) && confirm_sesskey()) { $DB->insert_record("local_webhooks_service", $callback); } + /* Run the event */ + $event = \local_webhooks\event\backup_restored::create(array("context" => $context, "objectid" => 0)); + $event->trigger(); + redirect($managerservice, new lang_string("restorefinished", "moodle")); } |