From 98c33a639ae8716ff65b62a561a6d9668be53955 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 13 Mar 2018 00:52:51 +0400 Subject: Added function 'local_webhooks_delete_all_records' Signed-off-by: Valentin Popov --- lib.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib.php') diff --git a/lib.php b/lib.php index b3b2659..02042ea 100644 --- a/lib.php +++ b/lib.php @@ -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(); -- cgit v1.2.3