Download & Extend

Theme function for menu item render

Project:Menu block
Version:6.x-2.2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

Because I have the need to deeply alter LI element's classes, I need a theme() function so I can alter it without dirty-hacking the module.
So, I made a patch to add this theme() function, see attached patch.

AttachmentSize
menu_block.module-menu_block_menu_theme.patch1.56 KB

Comments

#1

Status:needs review» needs work

This looks very useful; I have been looking for a way to cleanly make data about each menu item available when I theme the list elements.

There's some extra stuff in the patch (whitespace goop and an extra class beyond what the module currently implements), and it could probably use a reroll by now.

nobody click here