function menu_block_view

Implements hook_block_view().

File

modules/menu/menu.module, line 508

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.