OM themes always display Drupal standard menu items in a strange way (see attached snapshot).
How to get rid of these unwanted ids?
Thanks for help

CommentFileSizeAuthor
ommenuids.png32.8 KBjvieille
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jvieille’s picture

Category: support » bug
Priority: Normal » Major
Status: Active » Needs work

I found something

In om core template.php, function om_menu_item_link($link) {, line 174:
return 'menu-' . $link['mlid'] . '">' . l($link['title'], $link['href'], $link['localized_options']);

So, this seems intentional, but definitely wrong

I just replaced this line by
return l($link['title'], $link['href'], $link['localized_options']);
which actually removes the resulting erroneous profix in menu items.

But this might have some side effect as this cannot be coded this way by chance.
OM does not work at all in D6 without fixing this, so I made it a bug and major (providing a temporary fix is available for now)