summaryrefslogtreecommitdiff
path: root/modules/contact
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-11-17 03:58:30 +0000
committerDries Buytaert <dries@buytaert.net>2010-11-17 03:58:30 +0000
commitead244e09ff7751a03e8cefbab3e77e69b7117c0 (patch)
tree70159639761d80773bae088a7024c17b691e847e /modules/contact
parent3b35eb43c11f8d25260cc8a1c0c423d23d3a6b50 (diff)
downloadbrdo-ead244e09ff7751a03e8cefbab3e77e69b7117c0.tar.gz
brdo-ead244e09ff7751a03e8cefbab3e77e69b7117c0.tar.bz2
- Patch #973488 by amateescu, Volx: wrong default value in user admin settings form.
Diffstat (limited to 'modules/contact')
-rw-r--r--modules/contact/contact.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/contact/contact.module b/modules/contact/contact.module
index fc66f0519..0dcf67d86 100644
--- a/modules/contact/contact.module
+++ b/modules/contact/contact.module
@@ -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),
);
}