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?