In special_menu_items_theme_registry_alter() the "old" theming function for the "menu_item_link" theming hook is remembered and then it gets executed in the correct place, but this doesn't happen for the "menu_item" theming hook, it just gets overwritten. This destroys functionality in, for instance, dhtml_menu. Please ask me for further details.

I've created a patch for this.

Comments

raphaelhuefner’s picture

And now *with* patch file ;-) I'm still having a hard time with that upload thingy here ...

notrab’s picture

I had an issue trying to use the menu_item hook to add unique classes to the li tags in my menus. After several hours of troubleshooting, I discovered this post. This patch fixed my problems. I'm relatively new to this, so please let me know if I need to do anything else. Thanks for the patch raphaelhuefner.