You are here

function theme_menu_block_list in Menu Block 5

Generate the HTML for a menu list.

Parameters

$pid: int The parent id of the menu.

Return value

string The rendered menu list.

1 theme call to theme_menu_block_list()
_menu_block_block_view in ./menu_block.module
Returns the 'view' $op info for hook_block().

File

./menu_block.module, line 137

Code

function theme_menu_block_list($pid = 1) {
  if ($list = menu_block_tree($pid, 1, FALSE, TRUE)) {
    return '<ul class="menu-list menu-' . $pid . '">' . $list . '</ul>';
  }
  else {
    return '';
  }
}