MDL-26140 hide unfinished experimental DTL pages
[moodle.git] / admin / settings / top.php
CommitLineData
11b749ca 1<?php
50999a0b 2
c0a1aae3 3// This is the first file read by the lib/adminlib.php script
4// We use it to create the categories in correct order,
5// since they need to exist *before* settingpages and externalpages
6// are added to them.
50999a0b 7
8e5da17a 8$systemcontext = get_context_instance(CONTEXT_SYSTEM);
18818abf 9$hassiteconfig = has_capability('moodle/site:config', $systemcontext);
8e5da17a 10
bee4702d 11$ADMIN->add('root', new admin_externalpage('adminnotifications', get_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
c0a1aae3 12
07ab0c80 13$ADMIN->add('root', new admin_externalpage('registrationindex', get_string('registration','admin'),
14 "$CFG->wwwroot/$CFG->admin/registration/index.php"));
15$ADMIN->add('root', new admin_externalpage('registration', get_string('registeron','hub'),
16 "$CFG->wwwroot/$CFG->admin/registration/register.php", 'moodle/site:config', true));
17$ADMIN->add('root', new admin_externalpage('registrationselector', get_string('registeron','hub'),
18 "$CFG->wwwroot/$CFG->admin/registration/hubselector.php", 'moodle/site:config', true));
19$ADMIN->add('root', new admin_externalpage('siteregistrationconfirmed',
20 get_string('registrationconfirmed', 'hub'),
21 $CFG->wwwroot."/".$CFG->admin."/registration/confirmregistration.php", 'moodle/site:config', true));
c0a1aae3 22 // hidden upgrade script
23$ADMIN->add('root', new admin_externalpage('upgradesettings', get_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true));
24
90658eef 25if ($hassiteconfig) {
f94824db 26 $optionalsubsystems = new admin_settingpage('optionalsubsystems', get_string('advancedfeatures', 'admin'));
90658eef 27 $ADMIN->add('root', $optionalsubsystems);
28}
29
bee4702d 30$ADMIN->add('root', new admin_category('users', get_string('users','admin')));
31$ADMIN->add('root', new admin_category('courses', get_string('courses','admin')));
28e2c556 32$ADMIN->add('root', new admin_category('grades', get_string('grades')));
bee4702d 33$ADMIN->add('root', new admin_category('location', get_string('location','admin')));
34$ADMIN->add('root', new admin_category('language', get_string('language')));
bee4702d 35$ADMIN->add('root', new admin_category('modules', get_string('plugins', 'admin')));
bee4702d 36$ADMIN->add('root', new admin_category('security', get_string('security','admin')));
37$ADMIN->add('root', new admin_category('appearance', get_string('appearance','admin')));
84c8ede0 38$ADMIN->add('root', new admin_category('frontpage', get_string('frontpage','admin')));
bee4702d 39$ADMIN->add('root', new admin_category('server', get_string('server','admin')));
90658eef 40$ADMIN->add('root', new admin_category('mnet', get_string('net','mnet'), (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode === 'off')));
bee4702d 41$ADMIN->add('root', new admin_category('reports', get_string('reports')));
b032b490 42$ADMIN->add('root', new admin_category('development', get_string('development', 'admin')));
d994ced2 43
c9a49cea 44// hidden unsupported category
45$ADMIN->add('root', new admin_category('unsupported', get_string('unsupported', 'admin'), true));
d994ced2 46
220a90c5 47// hidden search script
48$ADMIN->add('root', new admin_externalpage('search', get_string('searchresults'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));