Added function 'local_webhooks_delete_record'
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
e8b59e7b0d
commit
98e5a6470d
1
lib.php
1
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user