This affects normal users. The administrator will not see this problem.

Comments

fizk’s picture

Title: Hiding view table also hides edit tab » Hiding view tab also hides edit tab
coreyp_1’s picture

Status: Active » Closed (works as designed)

Drupal core will not print only one tab. Therefore, if you have "View" and "Edit", and you hide one of them, then Drupal core will not print the other one.

You can change this behavior by overriding theme_menu_local_tasks().

Basically, you will have to create your own version of the menu_local_tasks() function, changing the part that hides the tabs when there is only one tab (the last line of the function). Then, in your theme_menu_local_tasks() function, call your modified menu_local_tasks(0) and menu_local_tasks(1) to get your primary and secondary menus, respectively.

fizk’s picture

Thanks!

This functionality could/should be implemented in tab tamer. Luckily I'm a programmer and can do this myself, but I'm sure there are many non-programmers using tab tamer.

fizk’s picture

Category: bug » feature
Status: Closed (works as designed) » Active
lhernon’s picture

Thanks for explaining this. I am one of the non-programmers that fizk refers too - so, I second the idea of implementing this in tabtamer. Having said that, tabtamer gives me far more flexibility that I, as a non-programmer would otherwise have, so thanks a million for the module.

coreyp_1’s picture

Status: Active » Closed (works as designed)

Again, this is something that must be fixed at the theme level, so I'm closing this unless someone has a brilliant idea of how to implement it in a module.

jasom’s picture

How this can be solved through theme level? Some cute nice snippet? ;-)