You are here

function theme_menu_block_tree in Menu Block 5.2

Same name and namespace in other branches
  1. 5 menu_block.module \theme_menu_block_tree()

Generate the HTML for a menu tree.

Parameters

$pid: int The parent id of the menu.

$depth_limit: int The maximum depth of the returned tree, 0 for unlimited.

$expanded: boolean Whether to expand the entire menu tree.

Return value

string The rendered menu tree.

2 theme calls to theme_menu_block_tree()
menu_block_tree in ./menu_block.module
Returns a rendered menu tree or menu list.
_menu_block_block_view in ./menu_block.module
Returns the 'view' $op info for hook_block().

File

./menu_block.module, line 167
Provides configurable blocks of menu items.

Code

function theme_menu_block_tree($pid = 1, $depth_limit = 0, $expanded = FALSE) {
  if ($tree = menu_block_tree($pid, $depth_limit, $expanded)) {
    return '<ul class="menu menu-tree menu-' . $pid . '">' . $tree . '</ul>';
  }
  else {
    return '';
  }
}