I think there's a better way to do this, just use dhtml_menu module, this will create ids for each li in the primary menu, you don't need to create funcitons, all you need is the function I gave you, the preprocess, because by default in drupal primary menus are only giving first level
Ramon Vilar Gavaldà ha scritto:
Hi Michelfunction spaziocomo_menu_item_link2($link) {
Can you attach or copy your theme function?
Ramon
Note that I have changed the name in ...link2() because of the problem of the two <li>.
switch ($link['menu_name']) {
case 'menu-internalmenu':
return "<li>".l(check_plain($link['link_title']), $link['link_path'])."</li>";
break;
default:
return l($link['title'], $link['href'], $link['localized_options']);
break;
}
}
--
Michel 'ZioBudda' Morelli michel@ziobuddalabs.net
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda
http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it