Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
There is currently no way to theme the links used for the primary and secondary local tasks differently.
I've tried implementing theme_menu_local_tasks to provide some indication to the link themeing hook, but alas the tabs are themed way before this method gets called.
Is it possible to provide this indication to theme_menu_local_task sometime in the future?
Comments
Comment #1
Dave Cohen CreditAttribution: Dave Cohen commentedJust ran into the same problem. Would like to see this fixed.
Comment #2
Everett Zufelt CreditAttribution: Everett Zufelt commentedAs far as I am aware, the actual link gets themed in theme_menu_item_link() which is called by menu_local_tasks(). Investigating this would be a good starting ground.
I will be doing some work with these two functions before code freeze. So, if you tell me what information you are looking for and give me a substantive reason for putting the time into the change, I'll see what I can do.
Comment #3
Everett Zufelt CreditAttribution: Everett Zufelt commentedAs far as I am aware, the actual link gets themed in theme_menu_item_link() which is called by menu_local_tasks(). Investigating this would be a good starting ground.
I will be doing some work with these two functions before code freeze. So, if you tell me what information you are looking for and give me a substantive reason for putting the time into the change, I'll see what I can do.
Comment #4
Dave Cohen CreditAttribution: Dave Cohen commentedIt's pretty clear the information we're looking for is whether the link is primary or secondary. In other words, the link's "level".
Substantive reason: because we want to tag primary links differently from secondary. In my case, using FBML markup, where primary links are
<fb:tab-item ...></fb:tab-item>
and secondary links are like<li><a ...>...</a></li>