- Patch #973488 by amateescu, Volx: wrong default value in user admin settings form.

merge-requests/26/head
Dries Buytaert 2010-11-17 03:58:30 +00:00
parent 3b35eb43c1
commit ead244e09f
1 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ function contact_user_presave(&$edit, $account, $category) {
}
/**
* Implement of hook_form_FORM_ID_alter().
* Implements hook_form_FORM_ID_alter().
*
* Add the default personal contact setting on the user settings page.
*/
@ -253,6 +253,6 @@ function contact_form_user_admin_settings_alter(&$form, &$form_state) {
'#type' => 'checkbox',
'#title' => t('Enable the personal contact form by default for new users.'),
'#description' => t('Changing this setting will not affect existing users.'),
'#default_value' => 1,
'#default_value' => variable_get('contact_default_status', 1),
);
}