From 98e5a6470dddb8a9e92e9f507d88e5c89007acc5 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 13 Mar 2018 00:48:12 +0400 Subject: Added function 'local_webhooks_delete_record' Signed-off-by: Valentin Popov --- lib.php | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.2.3