Problem
I'm trying to theme the menu local tasks that Drupal places without any unique css classes. How would I do this?
(Specifically I'm looking to hide certain links on certain pages by giving each one a unique css class).
Links Sample HTML
Which is generated by this line in page.tpl.php.
<?php if ($primary_local_tasks): ?><ul class='links'><?php print render($primary_local_tasks) ?></ul><?php endif; ?>
So Far
To do that I'm trying to use theme_menu_local_tasks however I can't get it to work. I've put this snippet in my template file but it doesn't print anything or show me any variables.
function tefltheme_menu_local_tasks (&$variables) {
dpm($variables);
print("hello");
return theme_menu_local_tasks($variables);
}
I'm using Tao sub-theme which means it splits menu local tasks into primary and secondary.
function tao_preprocess_page(&$vars) {
// Split primary and secondary local tasks
$vars['primary_local_tasks'] = menu_primary_local_tasks();
$vars['secondary_local_tasks'] = menu_secondary_local_tasks();
Could this be affecting anything?