Added function 'local_webhooks_delete_all_records'
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
98e5a6470d
commit
98c33a639a
1
lib.php
1
lib.php
@ -219,6 +219,7 @@ function local_webhooks_delete_all_records() {
|
|||||||
global $DB;
|
global $DB;
|
||||||
|
|
||||||
$result = $DB->delete_records(LOCAL_WEBHOOKS_TABLE_SERVICES, null);
|
$result = $DB->delete_records(LOCAL_WEBHOOKS_TABLE_SERVICES, null);
|
||||||
|
$DB->delete_records(LOCAL_WEBHOOKS_TABLE_EVENTS, null);
|
||||||
|
|
||||||
/* Clear the plugin cache */
|
/* Clear the plugin cache */
|
||||||
local_webhooks_cache_reset();
|
local_webhooks_cache_reset();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user