aboutsummaryrefslogtreecommitdiff
path: root/restorebackup.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-18 07:34:23 +0300
committerValentin Popov <info@valentineus.link>2017-11-18 07:34:23 +0300
commit3ea8f29329fcbb55d9367173fba1b4abeb927377 (patch)
treebd9051cb2d3f1182992023ee86f8ddbf39eef457 /restorebackup.php
parentc1077bc9c15b55a28b564dab43d3d5b4dcdf5826 (diff)
downloadlocal_webhooks-3ea8f29329fcbb55d9367173fba1b4abeb927377.tar.xz
local_webhooks-3ea8f29329fcbb55d9367173fba1b4abeb927377.zip
Adding event calls
Diffstat (limited to 'restorebackup.php')
-rw-r--r--restorebackup.php4
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"));
}