function bootstrap_menu_tree__primary

7.x-3.x menu-tree.func.php bootstrap_menu_tree__primary(array &$variables)

Bootstrap theme wrapper function for the primary menu links.

Parameters

array $variables: An associative array containing:

  • tree: An HTML string containing the tree's items.

Return value

string The constructed HTML.

Source templates/menu/menu-tree.func.php (line 37)

function bootstrap_menu_tree__primary(array &$variables) {
  return '<ul class="menu nav navbar-nav">' . $variables['tree'] . '</ul>';
}