diff options
Diffstat (limited to 'modules/contact')
-rw-r--r-- | modules/contact/contact.module | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 2bbf816bf..183a45c2b 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -168,13 +168,6 @@ function contact_load($cid) { } /** - * Implements hook_user_insert(). - */ -function contact_user_insert(&$edit, $account, $category) { - $edit['contact'] = variable_get('contact_default_status', 1); -} - -/** * Implements hook_mail(). */ function contact_mail($key, &$message, $params) { @@ -241,6 +234,13 @@ function contact_form_user_profile_form_alter(&$form, &$form_state) { } /** + * Implements hook_user_presave(). + */ +function contact_user_presave(&$edit, $account, $category) { + $edit['data']['contact'] = isset($edit['contact']) ? $edit['contact'] : variable_get('contact_default_status', 1); +} + +/** * Implement of hook_form_FORM_ID_alter(). * * Add the default personal contact setting on the user settings page. |