build_sitetree_menu (line 55)
Build menu based off of site tree branch.
array
build_sitetree_menu
(array $specifier)
-
array
$specifier: Where to get the site-tree under
_build_sitetree_menu_deep (line 31)
Recursive helper function for build_sitetree_menu.
array
_build_sitetree_menu_deep
(?integer $this_id, array $children, array $pagelinks, string $page_link, string $page)
-
?integer
$this_id: Parent's ID (NULL: make root level)
-
array
$children: Children to recurse with
-
array
$pagelinks: Tuple of information about our sitetree segment
-
string
$page_link: Page link of root branch (we monitor against this, making sure we use a NULL parent if we're a child of this)
-
string
$page: Page the links are scoped to