aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib.php b/lib.php
index 1e5868c..e773155 100644
--- a/lib.php
+++ b/lib.php
@@ -120,6 +120,16 @@ function local_webhooks_get_list_events() {
}
/**
+ * Get the total number of records.
+ *
+ * @return number
+ */
+function local_webhooks_get_total_count() {
+ global $DB;
+ return $DB->count_records("local_webhooks_service", array());
+}
+
+/**
* Create an entry in the database.
*
* @param object $record