Added function 'local_webhooks_delete_all_records'

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

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();