- Issue created by @adanielyan
I am trying to hide a menu item with unset($variables['items'][$key]);
in a MYMODULE_preprocess_menu()
hook based on some custom criteria specific to a logged in user. The code in the hook function runs, but it has no effect on the menu. I even tried changing a title or other attributes but still no effect.
1. Create a TB Mega Menu menu based on main menu.
2. In your custom theme or in a module create a MYMODULE_preprocess_menu() function and in that function manipulate a menu item.
Active
1.7
Code