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.
Hi,
I'm trying to get the Menu Access module working on my Basic based theme. The module requires the use of the adapted menu blocks provided with the module (called 'Menu Access - Primary links' etc) for it to work.
My problem is I want to get this working in the navigation div, not in a block.
The maintainer for Menu Access gives as instruction: "If you have a custom theme you can integrate the menu by calling menu_access_menu_tree('primary-links') where the unique computer name of the menu is your custom menu."
How would I achieve this in Basic?
Comments
Comment #1
SteveK CreditAttribution: SteveK commentedYou can take a look in the page.tpl.php. and replace the line with:
with:
I'm not too familiar with Menu Access, but I'm assuming that the menu_access_menu_tree() function returns a themed result.
Comment #2
damiankloip CreditAttribution: damiankloip commentedI would say that's how that issue is resolved. No other response to say otherwise.