webservices MDL-12886 "params" parameter has been changed into an object (conform...
[moodle.git] / admin / settings / development.php
CommitLineData
a7c72afc 1<?php // $Id$
2
721d74b0 3// * Miscellaneous settings
50999a0b 4
a559f630 5if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
6
220a90c5 7 // Experimental settings page
b032b490 8 $ADMIN->add('development', new admin_category('experimental', get_string('experimental','admin')));
3b49f849 9
10 $temp = new admin_settingpage('experimentalsettings', get_string('experimentalsettings', 'admin'));
220a90c5 11 $temp->add(new admin_setting_configcheckbox('enableglobalsearch', get_string('enableglobalsearch', 'admin'), get_string('configenableglobalsearch', 'admin'), 0));
12 $temp->add(new admin_setting_configcheckbox('smartpix', get_string('smartpix', 'admin'), get_string('configsmartpix', 'admin'), 0));
3b49f849 13 $item = new admin_setting_configcheckbox('enablehtmlpurifier', get_string('enablehtmlpurifier', 'admin'), get_string('configenablehtmlpurifier', 'admin'), 0);
109e3cb2 14 $item->set_updatedcallback('reset_text_filters_cache');
15 $temp->add($item);
20016444 16 $temp->add(new admin_setting_configcheckbox('experimentalsplitrestore', get_string('experimentalsplitrestore', 'admin'), get_string('configexperimentalsplitrestore', 'admin'), 0));
a559f630 17
3b49f849 18 $ADMIN->add('experimental', $temp);
19
20 // DB transfer related pages
b032b490 21 $ADMIN->add('experimental', new admin_externalpage('dbtransfer', get_string('dbtransfer', 'dbtransfer'), $CFG->wwwroot.'/'.$CFG->admin.'/dbtransfer/index.php', 'moodle/site:config'));
22 $ADMIN->add('experimental', new admin_externalpage('dbexport', get_string('dbexport', 'dbtransfer'), $CFG->wwwroot.'/'.$CFG->admin.'/dbtransfer/dbexport.php', 'moodle/site:config'));
778918fd 23
220a90c5 24 // XMLDB editor
b032b490 25 $ADMIN->add('development', new admin_externalpage('xmldbeditor', get_string('xmldbeditor'), "$CFG->wwwroot/$CFG->admin/xmldb/"));
c9a49cea 26
a559f630 27} // end of speedup
28
bee4702d 29?>