function user_dashboard_menu in UserDashboard 7
Implements hook_menu().
File
- ./
user_dashboard.module, line 15 - The User Dashboard module forks Drupal 7's awesome Dashboard module to provide an individual dashboard for each user on the site.
Code
function user_dashboard_menu() {
$items['user/dashboard'] = array(
'title' => 'Dashboard',
'description' => 'View and customize your dashboard.',
'page callback' => 'user_dashboard_page_redirect',
'access callback' => '_user_dashboard_access',
'type' => MENU_CALLBACK,
);
$items['user/%user/dashboard'] = array(
'title' => 'Dashboard',
'description' => 'View and customize your dashboard.',
'page callback' => 'user_dashboard_page',
'access callback' => '_user_dashboard_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
);
$items['user/%user/dashboard/customize'] = array(
'title' => 'AZECustomize dashboard',
'description' => 'Customize your dashboard.',
'page callback' => 'user_dashboard_page',
'page arguments' => array(
TRUE,
),
'access callback' => '_user_dashboard_access',
'type' => MENU_VISIBLE_IN_BREADCRUMB,
);
$items['user/%user/dashboard/drawer'] = array(
'page callback' => 'user_dashboard_show_disabled',
'access callback' => '_user_dashboard_access',
'type' => MENU_CALLBACK,
);
$items['admin/dashboard/user_dashboard/settings'] = array(
'title' => 'User Dashboard Settings',
'description' => 'Configure user dashboard settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_dashboard_settings',
),
'access arguments' => array(
'administer blocks',
),
'type' => MENU_VISIBLE_IN_BREADCRUMB,
);
$items['user/%user/dashboard/block-content/%/%'] = array(
'page callback' => 'user_dashboard_show_block_content',
'page arguments' => array(
4,
5,
),
'access callback' => '_user_dashboard_access',
'type' => MENU_CALLBACK,
);
$items['user/%user/dashboard/update'] = array(
'page callback' => 'user_dashboard_update',
'access callback' => '_user_dashboard_access',
'type' => MENU_CALLBACK,
);
$items['admin/dashboard/user_dashboard/set_default'] = array(
'page callback' => 'user_dashboard_set_default',
'access arguments' => array(
USER_DASHBOARD_PERM_SET_DEFAULT,
),
'type' => MENU_CALLBACK,
);
return $items;
}