function logouttab_admin_settings in Logout Tab 7
Same name and namespace in other branches
- 5 logouttab.module \logouttab_admin_settings()
- 6 logouttab.module \logouttab_admin_settings()
Defines the settings form.
1 string reference to 'logouttab_admin_settings'
- logouttab_menu in ./
logouttab.module - Implements hook_menu().
File
- ./
logouttab.module, line 39 - Adds a logout tab to the profile area.
Code
function logouttab_admin_settings() {
$form['logouttab_url'] = array(
'#type' => 'textfield',
'#title' => t('URL for the account logout page'),
'#description' => t('Enter the relative path for the user account logout page.'),
'#default_value' => variable_get('logouttab_url', 'user/logout'),
);
$form['logouttab_weight'] = array(
'#type' => 'weight',
'#title' => t('Weight of the logout tab'),
'#default_value' => variable_get('logouttab_weight', 8),
'#delta' => 30,
);
// Add own submit handler to request menu rebuild if weight changed.
$form['#submit'][] = 'logouttab_admin_settings_submit';
return system_settings_form($form);
}