mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-72930 navigation: Remove duplicated navigation boxes.
Some pages have settings that really aren't required anymore. These have been removed and a function has been aded so that other developers can turn off the navigation overflow if they want.
This commit is contained in:
parent
f56ecc27f9
commit
0a04ebde11
4 changed files with 31 additions and 28 deletions
|
@ -3633,14 +3633,8 @@ function data_extend_settings_navigation(settings_navigation $settings, navigati
|
|||
|
||||
$datanode->add(get_string('fields', 'data'),
|
||||
new moodle_url('/mod/data/field.php', array('d' => $data->id)));
|
||||
$templates = $datanode->add(get_string('templates', 'data'),
|
||||
$datanode->add(get_string('templates', 'data'),
|
||||
new moodle_url('/mod/data/templates.php', array('d' => $data->id)));
|
||||
|
||||
$templatelist = array ('listtemplate', 'singletemplate', 'asearchtemplate', 'addtemplate', 'rsstemplate', 'csstemplate', 'jstemplate');
|
||||
foreach ($templatelist as $template) {
|
||||
$templates->add(get_string($template, 'data'), new moodle_url('/mod/data/templates.php', array('d'=>$data->id,'mode'=>$template)));
|
||||
}
|
||||
|
||||
$datanode->add(get_string('presets', 'data'), new moodle_url('/mod/data/preset.php', array('d' => $data->id)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue