- Patch #973488 by amateescu, Volx: wrong default value in user admin settings form.
parent
3b35eb43c1
commit
ead244e09f
|
@ -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.
|
* 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',
|
'#type' => 'checkbox',
|
||||||
'#title' => t('Enable the personal contact form by default for new users.'),
|
'#title' => t('Enable the personal contact form by default for new users.'),
|
||||||
'#description' => t('Changing this setting will not affect existing users.'),
|
'#description' => t('Changing this setting will not affect existing users.'),
|
||||||
'#default_value' => 1,
|
'#default_value' => variable_get('contact_default_status', 1),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue