protected function get_link_path_internal($top_object) { $course = new koala_group_course($this->steam_group_course); $link_path = array(); // shift parent's link path left by two elements: foreach ($course->get_link_path($top_object) as $key => $value) { $link_path[$key - 2] = $value; } // append tutorials and tutorial link: $link_path[-2] = array('name' => gettext('Tutorials'), 'link' => $link_path[-3]['link'] . 'tutorials/'); $link_path[-1] = $this->get_link(); return $link_path; }