function contact_user_presave

Implements hook_user_presave().

Archivo

drupal-7.x/modules/contact/contact.module, line 236
Enables the use of personal and site-wide contact forms.

Código

function contact_user_presave(&$edit, $account, $category) {
  $edit['data']['contact'] = isset($edit['contact']) ? $edit['contact'] : variable_get('contact_default_status', 1);
}