diff options
author | Valentin Popov <info@valentineus.link> | 2017-11-15 09:43:51 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-11-15 09:43:51 +0300 |
commit | 0fcec2738d21a06cdfad967847997166b4785c79 (patch) | |
tree | f513a67a8d40bc8d4e5d4eb335dc3b6f11814f95 | |
parent | e1372c6d3492e7d33c03fada598d26d424f9fd40 (diff) | |
download | local_webhooks-0fcec2738d21a06cdfad967847997166b4785c79.tar.xz local_webhooks-0fcec2738d21a06cdfad967847997166b4785c79.zip |
Update the settings file
-rw-r--r-- | settings.php | 15 |
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 |