From 3ea8f29329fcbb55d9367173fba1b4abeb927377 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 18 Nov 2017 08:34:23 +0400 Subject: Adding event calls --- restorebackup.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'restorebackup.php') 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")); } -- cgit v1.2.3