function template_preprocess_responsive_menu_tree in Responsive and off-canvas menu 7
Same name and namespace in other branches
- 7.3 theme/theme.inc \template_preprocess_responsive_menu_tree()
- 7.2 theme/theme.inc \template_preprocess_responsive_menu_tree()
Implements template_preprocess_HOOK() for theme_responsive_menu_tree().
File
- theme/
theme.inc, line 29
Code
function template_preprocess_responsive_menu_tree(&$variables) {
$tree = reset($variables['tree']);
$depth = $tree['#original_link']['depth'];
$parent = !empty($tree['#original_link']['plid']) ? menu_link_load($tree['#original_link']['plid']) : FALSE;
$variables['depth'] = $depth;
$variables['mlid'] = $tree['#original_link']['mlid'];
$variables['parent_title'] = $parent ? $parent['link_title'] : FALSE;
$variables['plid'] = $parent ? $parent['mlid'] : FALSE;
}