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.
I would like to delete the extra div this module add around the menu:
<div class"menu-name-...>
Looking into menu-block.module code, this div come from function _menu_block_block_view($delta) {
, but I don't know how to override it.
Thanks
Comments
Comment #1
JohnAlbinUnfortunately, its hard-coded in the module and not overridable.
You don't like the classes?
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedI prefer to have a clean clode with only necessary classes.
Is it possible to add this function like a theme function, just like primary or secondary menu?
Comment #3
JohnAlbinSounds reasonable.
Comment #4
JohnAlbinCommitted.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedGreat! Thanks!