mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-73914 course: move both options to more menu
This commit moves the 'Download course content' and 'Unenrol me from course' options to more menu.
This commit is contained in:
parent
b74b47065a
commit
37bf03b2f4
2 changed files with 2 additions and 2 deletions
|
@ -517,7 +517,7 @@ function enrol_add_course_navigation(navigation_node $coursenode, $course) {
|
|||
if ($unenrollink = $plugin->get_unenrolself_link($instance)) {
|
||||
$shortname = format_string($course->shortname, true, array('context' => $coursecontext));
|
||||
$coursenode->add(get_string('unenrolme', 'core_enrol', $shortname), $unenrollink, navigation_node::TYPE_SETTING, null, 'unenrolself', new pix_icon('i/user', ''));
|
||||
$coursenode->get('unenrolself')->set_force_into_more_menu();
|
||||
$coursenode->get('unenrolself')->set_force_into_more_menu(true);
|
||||
break;
|
||||
//TODO. deal with multiple unenrol links - not likely case, but still...
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue