MDL-70197 navigation: Remove old navigation elements and migrate behat
This commit is contained in:
@@ -515,6 +515,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();
|
||||
break;
|
||||
//TODO. deal with multiple unenrol links - not likely case, but still...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user