aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-03-12 23:48:12 +0300
committerValentin Popov <info@valentineus.link>2018-03-12 23:48:12 +0300
commit98e5a6470dddb8a9e92e9f507d88e5c89007acc5 (patch)
tree0efe456b2eaa801f18d42b8cea002c1854c222ed
parente8b59e7b0d0d6a7f2f586092372d0b0e07ee8b27 (diff)
downloadlocal_webhooks-98e5a6470dddb8a9e92e9f507d88e5c89007acc5.tar.xz
local_webhooks-98e5a6470dddb8a9e92e9f507d88e5c89007acc5.zip
Added function 'local_webhooks_delete_record'
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--lib.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.php b/lib.php
index 6227e25..b3b2659 100644
--- a/lib.php
+++ b/lib.php
@@ -199,6 +199,7 @@ function local_webhooks_delete_record($serviceid) {
global $DB;
$result = $DB->delete_records(LOCAL_WEBHOOKS_TABLE_SERVICES, array("id" => $serviceid));
+ local_webhooks_delete_events_for_service($serviceid);
/* Clear the plugin cache */
local_webhooks_cache_reset();