From 0fcec2738d21a06cdfad967847997166b4785c79 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 15 Nov 2017 10:43:51 +0400 Subject: Update the settings file --- settings.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'settings.php') 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 -- cgit v1.2.3