Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
ommenuids.png | 32.8 KB | jvieille |
Comments
Comment #1
jvieille CreditAttribution: jvieille commentedI 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)