MDL-16348 Reorganise admin tree:
[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);
a559f630 16
4e781c7b 17 // Completion system
18 require_once($CFG->libdir.'/completionlib.php');
775f811a 19 $temp->add(new admin_setting_configcheckbox('enablecompletion', get_string('enablecompletion','completion'), get_string('configenablecompletion','completion'), COMPLETION_DISABLED));
20 $temp->add(new admin_setting_pickroles('progresstrackedroles', get_string('progresstrackedroles','completion'), get_string('configprogresstrackedroles', 'completion'), array('moodle/legacy:student')));
4e781c7b 21
3b49f849 22 $ADMIN->add('experimental', $temp);
23
24 // DB transfer related pages
b032b490 25 $ADMIN->add('experimental', new admin_externalpage('dbtransfer', get_string('dbtransfer', 'dbtransfer'), $CFG->wwwroot.'/'.$CFG->admin.'/dbtransfer/index.php', 'moodle/site:config'));
26 $ADMIN->add('experimental', new admin_externalpage('dbexport', get_string('dbexport', 'dbtransfer'), $CFG->wwwroot.'/'.$CFG->admin.'/dbtransfer/dbexport.php', 'moodle/site:config'));
778918fd 27
220a90c5 28 // XMLDB editor
b032b490 29 $ADMIN->add('development', new admin_externalpage('xmldbeditor', get_string('xmldbeditor'), "$CFG->wwwroot/$CFG->admin/xmldb/"));
c9a49cea 30
a559f630 31} // end of speedup
32
bee4702d 33?>