Added internal function 'local_webhooks_delete_events'
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
2c013b3230
commit
adb9a1e69c
10
locallib.php
10
locallib.php
@ -71,6 +71,16 @@ function local_webhooks_cache_reset() {
|
|||||||
return $cache->purge();
|
return $cache->purge();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deleting all the events linked to the given service.
|
||||||
|
*
|
||||||
|
* @param number $serviceid
|
||||||
|
*/
|
||||||
|
function local_webhooks_delete_events($serviceid) {
|
||||||
|
global $DB;
|
||||||
|
$DB->delete_records(LOCAL_WEBHOOKS_TABLE_EVENTS, array("serviceid" => $serviceid));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data serialization.
|
* Data serialization.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user