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

JohnAlbin’s picture

Status: Active » Postponed (maintainer needs more info)

Unfortunately, its hard-coded in the module and not overridable.

You don't like the classes?

Anonymous’s picture

I 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?

JohnAlbin’s picture

Title: How to override <div class="menu-name-..."? » Create template for <div class="menu-name-..."> wrapper
Component: Documentation » Code
Category: support » feature
Status: Postponed (maintainer needs more info) » Active

Sounds reasonable.

JohnAlbin’s picture

Title: Create template for <div class="menu-name-..."> wrapper » Create template for menu-block-wrapper
Status: Active » Fixed

Committed.

Anonymous’s picture

Great! Thanks!

Status: Fixed » Closed (fixed)

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