diff options
author | Valentin Popov <info@valentineus.link> | 2018-03-12 23:48:12 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-03-12 23:48:12 +0300 |
commit | 98e5a6470dddb8a9e92e9f507d88e5c89007acc5 (patch) | |
tree | 0efe456b2eaa801f18d42b8cea002c1854c222ed /lib.php | |
parent | e8b59e7b0d0d6a7f2f586092372d0b0e07ee8b27 (diff) | |
download | local_webhooks-98e5a6470dddb8a9e92e9f507d88e5c89007acc5.tar.xz local_webhooks-98e5a6470dddb8a9e92e9f507d88e5c89007acc5.zip |
Added function 'local_webhooks_delete_record'
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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(); |