SproutCMS

This is the code documentation for the SproutCMS project

function subMenu()

Return HTML for a drop-down sub menu

Usage

string NavigationMenu::subMenu ( Treenode $parent_node , array $groups , Treenode $selected_node , array $selected_ancestors );

Arguments

  1. Treenode $parent_node
    The node which is being rendered
  2. array $groups
    The groups of items to render, in the format [name => array of Treenode, ...]
  3. Treenode $selected_node
    The page the user is currently looking at
  4. array $selected_ancestors
    All ancestors of the selected node (Treenode::find_ancestors)

Return value

  • string
    HTML