Should be $COURSE not $course
[moodle-linuxchix.git] / admin / settings / top.php
blob315b79afb550aa47905e2acca64fa98fda9f5768
1 <?php // $Id$
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.
8 $ADMIN->add('root', new admin_externalpage('adminnotifications', get_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
10 // hidden upgrade script
11 $ADMIN->add('root', new admin_externalpage('upgradesettings', get_string('upgradesettings', 'admin'), "$CFG->wwwroot/$CFG->admin/upgradesettings.php", 'moodle/site:config', true));
13 // hidden search script
14 $ADMIN->add('root', new admin_externalpage('search', get_string('search', 'admin'), "$CFG->wwwroot/$CFG->admin/search.php", 'moodle/site:config', true));
16 $ADMIN->add('root', new admin_category('users', get_string('users','admin')));
17 $ADMIN->add('root', new admin_category('courses', get_string('courses','admin')));
18 $ADMIN->add('root', new admin_category('grades', get_string('grades')));
19 $ADMIN->add('root', new admin_category('location', get_string('location','admin')));
20 $ADMIN->add('root', new admin_category('language', get_string('language')));
22 $ADMIN->add('root', new admin_category('modules', get_string('plugins', 'admin')));
23 $ADMIN->add('modules', new admin_externalpage('managemodules', get_string('activities'), "$CFG->wwwroot/$CFG->admin/modules.php"));
24 $ADMIN->add('modules', new admin_externalpage('manageblocks', get_string('blocks'), "$CFG->wwwroot/$CFG->admin/blocks.php"));
25 $ADMIN->add('modules', new admin_externalpage('managefilters', get_string('managefilters'), "$CFG->wwwroot/$CFG->admin/filters.php"));
27 $ADMIN->add('root', new admin_category('security', get_string('security','admin')));
28 $ADMIN->add('root', new admin_category('appearance', get_string('appearance','admin')));
29 $ADMIN->add('root', new admin_category('frontpage', get_string('frontpage','admin')));
30 $ADMIN->add('root', new admin_category('server', get_string('server','admin')));
31 $ADMIN->add('root', new admin_category('mnet', get_string('net','mnet')));
33 $ADMIN->add('root', new admin_category('reports', get_string('reports')));
34 foreach (get_list_of_plugins('admin/report') as $plugin) {
35 /// This snippet is temporary until simpletest can be fixed to use xmldb. See MDL-7377 XXX TODO
36 if ($plugin == 'simpletest' && $CFG->dbfamily != 'mysql' && $CFG->dbfamily != 'postgres') {
37 continue;
39 /// End of removable snippet
40 $ADMIN->add('reports', new admin_externalpage('report'.$plugin, get_string($plugin, 'admin'), "$CFG->wwwroot/$CFG->admin/report/$plugin/index.php"));
43 $ADMIN->add('root', new admin_category('misc', get_string('miscellaneous')));
45 // hidden unsupported category
46 $ADMIN->add('root', new admin_category('unsupported', get_string('unsupported', 'admin'), true));