Adding classes to menu items Hi I am developing a custom module for menus and I want to add active class to menu items based on the current path. For this I have tried theme_menu_link() but this function only provides the mlid(menu link ID) of the original links and not all the menu items. But I need the mlid of all individual menu links. 

Is there any alternate hook for this functionality, or any other way to do this?
have a look at l() function in includes/common.inc:

...
if (($path == $_GET['q'] || ($path == '&lt;front&gt;' &amp;&amp; drupal_is_front_page())) &amp;&amp;
    (empty($options['language']) || $options['language']-&gt;language == $language_url-&gt;language)) {
  $options['attributes']['class'][] = 'active';
}
...