From ead244e09ff7751a03e8cefbab3e77e69b7117c0 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Wed, 17 Nov 2010 03:58:30 +0000
Subject: [PATCH] - Patch #973488 by amateescu, Volx:  wrong default value in
 user admin settings form.

---
 modules/contact/contact.module | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/contact/contact.module b/modules/contact/contact.module
index fc66f0519f65..0dcf67d86dc0 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),
   );
 }
-- 
GitLab