-
-
Save micahredding/6002544 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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