function logouttab_menu in Logout Tab 7
Same name and namespace in other branches
- 5 logouttab.module \logouttab_menu()
- 6 logouttab.module \logouttab_menu()
Implements 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' => variable_get('logouttab_weight', 8),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/people/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;
}