By droogie on
I want to add some IDs and classes to the local task tabs so i can style them in my theme.
It seems that hooking "theme_menu_local_task() " would do me no good, as I would need to hook something earlier where the array of links is first built. Not very good at tracking this down yet.
Can someone help me here?
(Hoping there's some easier way)
Comments
I know this is about a year
I know this is about a year old but until now I needed to to this and couldn't find anything.
I created a solution but it might not be elegant. It's also only for Drupal 6.x but it might work for Drupal 5.x with some small changes.
Let me try to explain what this is doing. First we use check_plain to convert the $link to simple text. Then, we find for some words inside the $link, if 'View' is found we assign that value to $submitcase. Then we use $submitcase to build the ID.
Luis