mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-71610 theme_boost: remove edit button from Boost
This commit is contained in:
parent
09f6ce9fed
commit
a0bb51622c
12 changed files with 22 additions and 9 deletions
|
@ -346,7 +346,9 @@ function book_extend_settings_navigation(settings_navigation $settingsnav, navig
|
|||
$url = new moodle_url('/mod/book/view.php', array('id'=>$params['id'], 'chapterid'=>$params['chapterid'], 'edit'=>$edit, 'sesskey'=>sesskey()));
|
||||
$editnode = navigation_node::create($string, $url, navigation_node::TYPE_SETTING);
|
||||
$booknode->add_node($editnode, $firstkey);
|
||||
$PAGE->set_button($OUTPUT->single_button($url, $string));
|
||||
if (!$PAGE->theme->haseditswitch) {
|
||||
$PAGE->set_button($OUTPUT->single_button($url, $string));
|
||||
}
|
||||
}
|
||||
|
||||
$plugins = core_component::get_plugin_list('booktool');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue