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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | special_menu_items-6.x-1.5-theme-chaining.patch | 2.3 KB | raphaelhuefner |
Comments
Comment #1
raphaelhuefner commentedAnd now *with* patch file ;-) I'm still having a hard time with that upload thingy here ...
Comment #2
notrab commentedI 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.