function dashboard_menu

Implements hook_menu().

File

modules/dashboard/dashboard.module, line 36

Code

function dashboard_menu() {
    $items['admin/dashboard'] = array(
        'title' => 'Dashboard',
        'description' => 'View and customize your dashboard.',
        'page callback' => 'dashboard_admin',
        'access arguments' => array(
            'access dashboard',
        ),
        // Make this appear first, so for example, in admin menus, it shows up on
        // the top corner of the window as a convenient "home link".
'weight' => -15,
    );
    $items['admin/dashboard/configure'] = array(
        'title' => 'Configure available dashboard blocks',
        'description' => 'Configure which blocks can be shown on the dashboard.',
        'page callback' => 'dashboard_admin_blocks',
        'access arguments' => array(
            'administer blocks',
        ),
        'type' => MENU_VISIBLE_IN_BREADCRUMB,
    );
    $items['admin/dashboard/customize'] = array(
        'title' => 'Customize dashboard',
        'description' => 'Customize your dashboard.',
        'page callback' => 'dashboard_admin',
        'page arguments' => array(
            TRUE,
        ),
        'access arguments' => array(
            'access dashboard',
        ),
        'type' => MENU_VISIBLE_IN_BREADCRUMB,
    );
    $items['admin/dashboard/drawer'] = array(
        'page callback' => 'dashboard_show_disabled',
        'access arguments' => array(
            'administer blocks',
        ),
        'type' => MENU_CALLBACK,
    );
    $items['admin/dashboard/block-content/%/%'] = array(
        'page callback' => 'dashboard_show_block_content',
        'page arguments' => array(
            3,
            4,
        ),
        'access arguments' => array(
            'administer blocks',
        ),
        'type' => MENU_CALLBACK,
    );
    $items['admin/dashboard/update'] = array(
        'page callback' => 'dashboard_update',
        'access arguments' => array(
            'administer blocks',
        ),
        'type' => MENU_CALLBACK,
    );
    return $items;
}

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