Added function 'local_webhooks_delete_all_records'

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2018-03-13 00:52:51 +04:00
parent 98e5a6470d
commit 98c33a639a

View File

@@ -219,6 +219,7 @@ function local_webhooks_delete_all_records() {
global $DB;
$result = $DB->delete_records(LOCAL_WEBHOOKS_TABLE_SERVICES, null);
$DB->delete_records(LOCAL_WEBHOOKS_TABLE_EVENTS, null);
/* Clear the plugin cache */
local_webhooks_cache_reset();