diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-26 16:11:34 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-26 16:11:34 +0300 |
commit | 6b5c96a383df673ec1b41c56bdb7cc83e5ecd5c8 (patch) | |
tree | 2cf6dd44f75b5a65ae9b5169f9d905432b316736 /settings.php | |
parent | 8ed2352fbe407b3908a23d1a9cffb945968afcff (diff) | |
download | local_webhooks-6b5c96a383df673ec1b41c56bdb7cc83e5ecd5c8.tar.xz local_webhooks-6b5c96a383df673ec1b41c56bdb7cc83e5ecd5c8.zip |
Refactoring the configuration file code
Diffstat (limited to 'settings.php')
-rw-r--r-- | settings.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/settings.php b/settings.php index 22fef2f..b83ad3d 100644 --- a/settings.php +++ b/settings.php @@ -26,20 +26,14 @@ defined("MOODLE_INTERNAL") || die(); $settings = null; if ($hassiteconfig) { - $settings = new admin_settingpage("local_webhooks", - new lang_string("pluginname", "local_webhooks")); - + $settings = new admin_settingpage("local_webhooks", new lang_string("pluginname", "local_webhooks")); $ADMIN->add("localplugins", $settings); - $settings->add(new admin_setting_configcheckbox( - "local_webhooks/enable", - new lang_string("enable", "moodle"), - new lang_string("enablews", "webservice"), - false)); + /* 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("managerservice", "local_webhooks"); $linkurl = new moodle_url("/local/webhooks/managerservice.php"); - $settings->add(new admin_setting_heading("local_webhooks_managerservice", null, - html_writer::link($linkurl, $linktext))); + $settings->add(new admin_setting_heading("local_webhooks_managerservice", null, html_writer::link($linkurl, $linktext))); }
\ No newline at end of file |