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.
By mrpnut08 on
Hello, I'm creating a theme for a personal project of mine (it's a sub-theme of bootstrap) and due to a design decision, the theme renders the first level of the primary nav in a tabs - and then renders all its children in a submenu region (using the menu block module to achieve this).
Its there a way in the menu-link.func.php file to identify the menu which is set as $primary_nav, so that the children in that menu does not get rendered?