function menu_block_view

You are here

7 menu.module menu_block_view($delta = '')

Implements hook_block_view().

File

modules/menu/menu.module, line 484
Allows administrators to customize the site's navigation menus.

Code

function menu_block_view($delta = '') {
  $menus = menu_get_menus(FALSE);
  $data['subject'] = check_plain($menus[$delta]);
  $data['content'] = menu_tree($delta);
  // Add contextual links for this block.
  if (!empty($data['content'])) {
    $data['content']['#contextual_links']['menu'] = array('admin/structure/menu/manage', array($delta));
  }
  return $data;
}