function responsive_navigation_build_page_trail in Responsive Navigation 7
Build the active trail from the page's menu data.
1 call to responsive_navigation_build_page_trail()
- theme_responsive_navigation_tree in ./
responsive_navigation.module - Builds the final Responsive Navigation menu.
File
- ./
responsive_navigation.module, line 271
Code
function responsive_navigation_build_page_trail($page_menu) {
$trail = array();
foreach ($page_menu as $item) {
if ($item['link']['in_active_trail'] || $item['link']['href'] == '<front>' && drupal_is_front_page()) {
$trail[] = $item['link']['mlid'];
}
if ($item['below']) {
$trail = array_merge($trail, responsive_navigation_build_page_trail($item['below']));
}
}
return $trail;
}