I wrote a patch which does this in a basic way. Basically it remembers the theme function for theme_menu_item as well as theme_menu_item_link. It also allows turning off the link rewriting in theme_menu_item_link on a per menu basis which may help it be more flexible.

Comments

lolcode’s picture

Attaching the patch.

gagarine’s picture

Status: Patch (to be ported) » Needs work

Thanks for your work but the patch format is not good. Please take a look at https://drupal.org/node/707484.