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
On Wed, Sep 9, 2009 at 4:42 PM, Michel Morelli michel@ziobuddalabs.itwrote:
Ramon Vilar Gavaldà ha scritto:
Hi Michel Can you attach or copy your theme function?
Ramon
function spaziocomo_menu_item_link2($link) { 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; } }
Note that I have changed the name in ...link2() because of the problem of the two <li>.
-- 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
-- [ Drupal support list | http://lists.drupal.org/ ]