I think there&#39;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&#39;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<br>
<br><div class="gmail_quote">On Wed, Sep 9, 2009 at 4:42 PM, Michel Morelli <span dir="ltr">&lt;<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Ramon Vilar Gavaldà ha scritto:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Michel<div class="im"><br>
Can you attach or copy your theme function?<br>
<br>
Ramon<br>
<br>
  <br>
</div></blockquote>
function spaziocomo_menu_item_link2($link) {<div class="im"><br>
 switch ($link[&#39;menu_name&#39;]) {<br>
   case &#39;menu-internalmenu&#39;:<br>
     return &quot;&lt;li&gt;&quot;.l(check_plain($link[&#39;link_title&#39;]), $link[&#39;link_path&#39;]).&quot;&lt;/li&gt;&quot;;<br>
     break;<br>
<br>
   default:<br>
     return l($link[&#39;title&#39;], $link[&#39;href&#39;], $link[&#39;localized_options&#39;]);<br>
     break;<br>
 }<br>
}<br>
<br></div>
Note that I have changed the name in ...link2() because of the problem of the two &lt;li&gt;.<div class="im"><br>
<br>
-- <br>
Michel &#39;ZioBudda&#39; Morelli                       <a href="mailto:michel@ziobuddalabs.net" target="_blank">michel@ziobuddalabs.net</a><br>
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)<br>
Telefono: 0200619074<br>
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660<br>
<br>
<a href="http://www.ziobudda.net" target="_blank">http://www.ziobudda.net</a>                         ICQ: 58351764  <a href="http://www.ziobuddalabs.it" target="_blank">http://www.ziobuddalabs.it</a>                      Skype: zio_budda<br>

<a href="http://www.ziodrupal.net" target="_blank">http://www.ziodrupal.net</a>                        MSN: <a href="mailto:michel@ziobuddalabs.it" target="_blank">michel@ziobuddalabs.it</a>                                                                   JABBER: <a href="mailto:michel@ziobuddalabs.it" target="_blank">michel@ziobuddalabs.it</a><br>

<br></div><div><div></div><div class="h5">
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Daniel Honrade, Jr.<br><br>mobile:  +63 915 903 3561<br>alternate email:  <a href="mailto:danielhonrade@gmail.com">danielhonrade@gmail.com</a><br>websites:  <a href="http://danielhonrade.com">http://danielhonrade.com</a><br>
                <a href="http://webtheming.com">http://webtheming.com</a><br><br><br>When you signup for PayPal, you can start accepting credit card payments instantly. As the world&#39;s number one online payment service, PayPal is the fastest way to open your doors to over 150 million member accounts worldwide. Best of all, it&#39;s completely free to sign up! To sign up or learn more, click here: <a href="https://www.paypal.com/ph/mrb/pal=GE47NYP4D94XA">https://www.paypal.com/ph/mrb/pal=GE47NYP4D94XA</a><br>