summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-27 15:01:48 +0300
committerValentin Popov <info@valentineus.link>2017-12-27 15:01:48 +0300
commit3d4b78bd8b5c47f27d8b03101633c03da4e46997 (patch)
treed1c88232a67da99c8db35b57e4fb463daacb87e2 /classes
parent41185c6db4e24b66b8773918a59683f132802744 (diff)
downloadlocal_webhooks-3d4b78bd8b5c47f27d8b03101633c03da4e46997.tar.xz
local_webhooks-3d4b78bd8b5c47f27d8b03101633c03da4e46997.zip
Added the function of receiving all the events
Diffstat (limited to 'classes')
-rw-r--r--classes/service_form.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/service_form.php b/classes/service_form.php
index 8ec6c0f..fd14070 100644
--- a/classes/service_form.php
+++ b/classes/service_form.php
@@ -24,6 +24,8 @@
defined("MOODLE_INTERNAL") || die();
+require_once(__DIR__ . "/../lib.php");
+
require_once($CFG->libdir . "/formslib.php");
/**
@@ -84,7 +86,7 @@ class service_edit_form extends moodleform {
$mform->addElement("header", "editserviceheaderevent", new lang_string("edulevel", "moodle"));
/* List of events */
- $eventlist = report_eventlist_list_generator::get_all_events_list(true);
+ $eventlist = local_webhooks_get_list_events();
$events = array();
/* Formation of the list of elements */