When editing a field collection on a node there are two tabs typically, view and edit. I wanted to remove them. Obviously I can hide them with CSS, but this feels like the wrong way to do it. Is there a better way?
2 Answers
If you want to do this with code, you can use hook_menu_alter(). Set the "type" to MENU_CALLBACK. This will still keep the path registered, but it will not show a tab. More inforamtion
-
Thanks. I understand how to intercept these entries via hook_menu_alter, but what can I change to make them not appear? I still want the page to appear, just the tabs to not be visible.– JustinCommented Nov 11, 2011 at 23:33
-