mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
navigation MDL-20651 Added config setting to hide course categories on the navigation
As requested and voted on admin can now choose not to include course categories within the navbar and global navigation block. At the same time I also introduced a second setting, showallcourses, which ensures all of the courses a user is registered in are shown on the navigation at all times.
This commit is contained in:
parent
8bdc9cacad
commit
da3ab9c4be
5 changed files with 77 additions and 9 deletions
|
@ -65,6 +65,12 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
|
|||
$temp->add(new admin_setting_configtext('maxexternalblogsperuser', get_string('maxexternalblogsperuser','blog'), get_string('configmaxexternalblogsperuser', 'blog'), 1));
|
||||
$ADMIN->add('appearance', $temp);
|
||||
|
||||
// Navigation settings
|
||||
$temp = new admin_settingpage('navigation', get_string('navigation'));
|
||||
$temp->add(new admin_setting_configcheckbox('navhidecategories', get_string('navhidecategories', 'admin'), get_string('confignavhidecategories', 'admin'), 0));
|
||||
$temp->add(new admin_setting_configcheckbox('navshowallcourses', get_string('navshowallcourses', 'admin'), get_string('confignavshowallcourses', 'admin'), 0));
|
||||
$ADMIN->add('appearance', $temp);
|
||||
|
||||
/* TODO: reimplement editor settings and preferences, editors are now full plugins ;-)
|
||||
// "htmleditor" settingpage
|
||||
$ADMIN->add('appearance', new admin_category('htmleditor', get_string('htmleditor', 'admin')));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue