Adding attribute to menu - page specific Hi I know I can alter menu links classes/attributes using theme_menu_link() function.
But from what I can see, there is no way to determine what current page is being rendered from within the function.

i.e. I have a wep app that loads in 4 pages (ajax) and you can swipe to change page. I need to add an attribute on each menu link and they differ depending on the page.

Question being, how can I determine page from within theme_menu_link();

Regards
found it, 

$page = arg(0);


cheers anyways