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

Dave Cohen’s picture

Version: 6.9 » 6.x-dev
Category: feature » bug

Just ran into the same problem. Would like to see this fixed.

Everett Zufelt’s picture

As 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.

Everett Zufelt’s picture

As 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.

Dave Cohen’s picture

It'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>

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.