function login_destination_menu in Login Destination 7
Same name and namespace in other branches
- 5 login_destination.module \login_destination_menu()
- 6.2 login_destination.module \login_destination_menu()
- 6 login_destination.module \login_destination_menu()
Implements hook_menu().
File
- ./
login_destination.module, line 51 - Control where users are directed to, once they login
Code
function login_destination_menu() {
$items['admin/config/people/login-destination'] = array(
'title' => 'Login destinations',
'description' => 'Customize the destination that the user is redirected to after login.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'login_destination_overview_form',
),
'access arguments' => array(
'administer login destination settings',
),
'file' => 'login_destination.admin.inc',
'weight' => 10,
);
$items['admin/config/people/login-destination/add'] = array(
'title' => 'Add login destination rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'login_destination_edit_form',
),
'access arguments' => array(
'administer login destination settings',
),
'type' => MENU_LOCAL_ACTION,
'weight' => 1,
'file' => 'login_destination.admin.inc',
);
$items['admin/config/people/login-destination/edit/%login_destination'] = array(
'title' => 'Edit login destination rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'login_destination_edit_form',
5,
),
'access arguments' => array(
'administer login destination settings',
),
'file' => 'login_destination.admin.inc',
);
$items['admin/config/people/login-destination/delete/%login_destination'] = array(
'title' => 'Delete login destination rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'login_destination_delete_form',
5,
),
'access arguments' => array(
'administer login destination settings',
),
'file' => 'login_destination.admin.inc',
);
$items['admin/config/people/login-destination/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/people/login-destination/settings'] = array(
'title' => 'Settings',
'description' => 'Change Login Destination settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'login_destination_settings',
),
'access arguments' => array(
'administer login destination settings',
),
'type' => MENU_LOCAL_TASK,
'file' => 'login_destination.admin.inc',
'weight' => 10,
);
return $items;
}