function login_destination_menu in Login Destination 5
Same name and namespace in other branches
- 6.2 login_destination.module \login_destination_menu()
- 6 login_destination.module \login_destination_menu()
- 7 login_destination.module \login_destination_menu()
Implementation of hook_menu().
File
- ./
login_destination.module, line 34 - Controls which URL users will be redirected upon login.
Code
function login_destination_menu($my_cache) {
$items = array();
if ($my_cache) {
$items[] = array(
'path' => 'admin/user/login_destination',
'title' => t('Login destination'),
'description' => t('Configure where user will go after login.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'login_destination_admin_settings',
),
);
$items[] = array(
'path' => 'login_redirect',
'callback' => 'login_destination_redirect',
'access' => TRUE,
'type' => MENU_CALLBACK,
);
}
return $items;
}