2

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?

1
  • You can do that from your themes page template file. They are printed as tabs variable.
    – ram4nd
    Oct 10, 2011 at 6:28

2 Answers 2

3

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

2
  • 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.
    – Justin
    Nov 11, 2011 at 23:33
  • Google fail! I figured this out: drupal.org/node/483324
    – Justin
    Nov 11, 2011 at 23:35
4

tab tamer has just been ported to D7 a week ago and might be able to remove those tabs as well.

1
  • Nice! I will look.
    – Justin
    Oct 9, 2011 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.