Skip to content

Instantly share code, notes, and snippets.

@micahredding
Forked from ewillhite/gist:6002498
Last active December 19, 2015 18:58
Show Gist options
  • Save micahredding/6002544 to your computer and use it in GitHub Desktop.
Save micahredding/6002544 to your computer and use it in GitHub Desktop.
function qhr_menu_block_tweaks_menu_block_tree_alter(&$tree, &$config) {
foreach ($tree as $key => $item) {
if (isset($item['below'])) {
foreach($item['below'] as $id => $below) {
if (isset($below['link']['link_path']) && $below['link']['link_path'] === '<view>') {
$below['link']['hidden'] = true;
$tree[$key]['below'][$id] = $below;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment