aboutsummaryrefslogtreecommitdiff
path: root/lib.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-03-12 23:52:51 +0300
committerValentin Popov <info@valentineus.link>2018-03-12 23:52:51 +0300
commit98c33a639ae8716ff65b62a561a6d9668be53955 (patch)
tree13008832b7d285f28b7f75b9bf103827b9d730b6 /lib.php
parent98e5a6470dddb8a9e92e9f507d88e5c89007acc5 (diff)
downloadlocal_webhooks-98c33a639ae8716ff65b62a561a6d9668be53955.tar.xz
local_webhooks-98c33a639ae8716ff65b62a561a6d9668be53955.zip
Added function 'local_webhooks_delete_all_records'
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php1
1 files changed, 1 insertions, 0 deletions
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();