function logouttab_menu in Logout Tab 6
Same name and namespace in other branches
- 5 logouttab.module \logouttab_menu()
- 7 logouttab.module \logouttab_menu()
Implementation of hook_menu().
File
- ./
logouttab.module, line 11 - Adds a logout tab to the profile area.
Code
function logouttab_menu() {
$items['user/%user/logouttab'] = array(
'title' => 'Log out',
'page callback' => '_logouttab_redirect_url',
'access callback' => 'user_is_logged_in',
'weight' => 8,
'type' => MENU_LOCAL_TASK,
);
$items['admin/user/logouttab'] = array(
'title' => 'Logout settings',
'description' => 'Choose the page that the user account logout tab link goes to.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'logouttab_admin_settings',
),
'access arguments' => array(
'administer users',
),
);
return $items;
}