contact_user_presave
function contact_user_presave
contact_user_presave(&$edit, $account, $category)
Implements hook_user_presave().
File
- modules/contact/contact.module, line 236
- Enables the use of personal and site-wide contact forms.
Code
function contact_user_presave(&$edit, $account, $category) { $edit['data']['contact'] = isset($edit['contact']) ? $edit['contact'] : variable_get('contact_default_status', 1); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!contact!contact.module/function/contact_user_presave/7.x