Closed (works as designed)
Project:
Tab Tamer
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2010 at 13:12 UTC
Updated:
17 Jan 2011 at 12:02 UTC
This affects normal users. The administrator will not see this problem.
Comments
Comment #1
fizk commentedComment #2
coreyp_1 commentedDrupal 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 modifiedmenu_local_tasks(0)andmenu_local_tasks(1)to get your primary and secondary menus, respectively.Comment #3
fizk commentedThanks!
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.
Comment #4
fizk commentedComment #5
lhernon commentedThanks 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.
Comment #6
coreyp_1 commentedAgain, 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.
Comment #7
jasom commentedHow this can be solved through theme level? Some cute nice snippet? ;-)