aboutsummaryrefslogtreecommitdiff
path: root/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings.php')
-rw-r--r--settings.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/settings.php b/settings.php
index 5092974..aeeeeb8 100644
--- a/settings.php
+++ b/settings.php
@@ -24,16 +24,9 @@
defined("MOODLE_INTERNAL") || die();
-$settings = null;
if ($hassiteconfig) {
- $settings = new admin_settingpage("local_webhooks", new lang_string("pluginname", "local_webhooks"));
- $ADMIN->add("localplugins", $settings);
-
- /* The switch of the interceptor of events */
- $settings->add(new admin_setting_configcheckbox("local_webhooks/enable", new lang_string("enable", "moodle"), new lang_string("enablews", "webservice"), false));
-
- /* Link to the service manager */
- $linktext = new lang_string("externalservices", "webservice");
- $linkurl = new moodle_url("/local/webhooks/managerservice.php");
- $settings->add(new admin_setting_heading("local_webhooks_managerservice", null, html_writer::link($linkurl, $linktext)));
+ $ADMIN->add("server", new admin_externalpage("local_webhooks",
+ new lang_string("externalservices", "webservice"),
+ new moodle_url("/local/webhooks/managerservice.php")
+ ));
} \ No newline at end of file