Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As I could'nt find any way to override menu render into menu_block's blocks() I made a one-line patch to add a class child-$i to menu elements.
I really needed this class, and this part of code is not themable, so I had to do this. This has sens, as the module already add 'first' and 'last' classes.
Is there any way to do it with a proper theme() function? If no, is it possible to apply this patch to future releases?
Attached, the patch, based on 6.x-2.2 version.
Comment | File | Size | Author |
---|---|---|---|
menu_block.module-childi.patch | 413 bytes | pounard | |
Comments
Comment #1
pounardThis thread is obsolete because of this one: #499636: Theme function for menu item render
Comment #2
pounard