From 3d4b78bd8b5c47f27d8b03101633c03da4e46997 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 27 Dec 2017 16:01:48 +0400 Subject: Added the function of receiving all the events --- lib.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib.php') diff --git a/lib.php b/lib.php index ddfeceb..fd2921c 100644 --- a/lib.php +++ b/lib.php @@ -83,6 +83,16 @@ function local_webhooks_get_list_records($limitfrom = 0, $limitnum = 0) { return $listrecords; } +/** + * Get a list of all system events. + * + * @return array + */ +function local_webhooks_get_list_events() { + $eventlist = report_eventlist_list_generator::get_all_events_list(true); + return $eventlist; +} + /** * Create an entry in the database. * -- cgit v1.2.3