diff options
author | Valentin Popov <info@valentineus.link> | 2017-11-18 07:34:23 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-11-18 07:34:23 +0300 |
commit | 3ea8f29329fcbb55d9367173fba1b4abeb927377 (patch) | |
tree | bd9051cb2d3f1182992023ee86f8ddbf39eef457 /restorebackup.php | |
parent | c1077bc9c15b55a28b564dab43d3d5b4dcdf5826 (diff) | |
download | local_webhooks-3ea8f29329fcbb55d9367173fba1b4abeb927377.tar.xz local_webhooks-3ea8f29329fcbb55d9367173fba1b4abeb927377.zip |
Adding event calls
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")); } |