Hello All,<div><br></div><div>To highlight a menu item (normal menu) as active when in certain conditions i want to add a (css) class to the link in question. I tried setting the menu item as active using menu_set_active_item, but this breaks the local tasks menu. I tried doing the same using menu_set_item preceded by menu_local_tasks(0), again this breaks the local tasks. So it seems i have to add a css class to my menu item. I tried this using the following hooks, but to no avail:</div>
<div><br></div><div><div>function my_module_menu_link_alter(&amp;$item, $menu) {</div><div>  if($item[&#39;link_path&#39;] == &#39;evaluator/mijn-projecten/personal&#39;) {</div><div>    $item[&#39;options&#39;][&#39;alter&#39;] = TRUE;</div>
<div>    $item[&#39;options&#39;][&#39;attributes&#39;][&#39;class&#39;] = (($item[&#39;options&#39;][&#39;attributes&#39;][&#39;class&#39;])?&#39; &#39;:&#39;&#39;) . &quot;active-trail&quot;;</div><div>  }</div><div>}</div>
<div><br></div><div><span class="Apple-style-span">function </span>my_module<span class="Apple-style-span">_translated_menu_link_alter(&amp;$item, $map) {</span></div><div>  $item[&#39;localized_options&#39;][&#39;attributes&#39;][&#39;class&#39;] .= &#39; active-trail&#39;;</div>
<div>}</div></div><div><br></div><div>Any ideas?</div><div><br></div><div>Best,</div><div><br></div><div><br></div><div>Toon</div><div><br></div>