This patch renames the megamenu_theme_menu_tree function to theme_megamenu_menu_tree and adds a reference to it in the megamenu_theme function. This allows the megamenu _menu_tree function to be overwritten by a theme's template.php file.

Setting up support for tpl files would be better, but this does the job, allowing themers to modify output without changing the module files.

CommentFileSizeAuthor
mm_themable.patch1.17 KBezra

Comments

kanani’s picture

That's awesome. i had to hack some stuff together for a current site with the plan to port it back in as a proper patch.

Looks like your a long way there.

thanks.

Anonymous’s picture

Priority: Normal » Major
Status: Patch (to be ported) » Needs review
Anonymous’s picture

Status: Needs review » Fixed

Committed to 6.x-2.x-dev in #492846

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.