Permalink
Browse files

MDL-35998 move mobile under web services + leave enable mobile under …

…manage web service too
  • Loading branch information...
mouneyrac committed Oct 31, 2012
1 parent 33af788 commit 489987af77b205ed26895e3441d87b32147330f6
Showing with 12 additions and 9 deletions.
  1. +12 −0 admin/settings/plugins.php
  2. +0 −9 admin/settings/server.php
View
@@ -245,6 +245,15 @@
/// Web services
$ADMIN->add('modules', new admin_category('webservicesettings', new lang_string('webservices', 'webservice')));
+ // Mobile
+ $temp = new admin_settingpage('mobile', new lang_string('mobile','admin'), 'moodle/site:config', false);
+ $enablemobiledocurl = new moodle_url(get_docs_url('Enable_mobile_web_services'));
+ $enablemobiledoclink = html_writer::link($enablemobiledocurl, new lang_string('documentation'));
+ $temp->add(new admin_setting_enablemobileservice('enablemobilewebservice',
+ new lang_string('enablemobilewebservice', 'admin'),
+ new lang_string('configenablemobilewebservice', 'admin', $enablemobiledoclink), 0));
+ $temp->add(new admin_setting_configtext('mobilecssurl', new lang_string('mobilecssurl', 'admin'), new lang_string('configmobilecssurl','admin'), '', PARAM_URL));
+ $ADMIN->add('webservicesettings', $temp);
/// overview page
$temp = new admin_settingpage('webservicesoverview', new lang_string('webservicesoverview', 'webservice'));
$temp->add(new admin_setting_webservicesoverview());
@@ -253,6 +262,9 @@
$ADMIN->add('webservicesettings', new admin_externalpage('webservicedocumentation', new lang_string('wsdocapi', 'webservice'), "$CFG->wwwroot/$CFG->admin/webservice/documentation.php", 'moodle/site:config', false));
/// manage service
$temp = new admin_settingpage('externalservices', new lang_string('externalservices', 'webservice'));
+ $temp->add(new admin_setting_enablemobileservice('enablemobilewebservice',
+ new lang_string('enablemobilewebservice', 'admin'),
+ new lang_string('configenablemobilewebservice', 'admin', $enablemobiledoclink), 0));
$temp->add(new admin_setting_heading('manageserviceshelpexplaination', new lang_string('information', 'webservice'), new lang_string('servicehelpexplanation', 'webservice')));
$temp->add(new admin_setting_manageexternalservices());
$ADMIN->add('webservicesettings', $temp);
@@ -4,15 +4,6 @@
if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
- // Mobile
- $mobile = new admin_settingpage('mobile', new lang_string('mobile','admin'), 'moodle/site:config', false);
- $mobile->add(new admin_setting_configtext('mobilecssurl', new lang_string('mobilecssurl', 'admin'), new lang_string('configmobilecssurl','admin'), '', PARAM_URL));
- $enablemobiledocurl = new moodle_url(get_docs_url('Enable_mobile_web_services'));
- $enablemobiledoclink = html_writer::link($enablemobiledocurl, new lang_string('documentation'));
- $mobile->add(new admin_setting_enablemobileservice('enablemobilewebservice',
- new lang_string('enablemobilewebservice', 'admin'),
- new lang_string('configenablemobilewebservice', 'admin', $enablemobiledoclink), 0));
- $ADMIN->add('server', $mobile);
// "systempaths" settingpage
$temp = new admin_settingpage('systempaths', new lang_string('systempaths','admin'));

0 comments on commit 489987a

Please sign in to comment.