You are here

function contact_user in Contact 6.2

Implementation of hook_user().

Allows the user the option of enabling/disabling his personal contact form.

File

./contact.module, line 162
Enables the use of personal and site-wide contact forms.

Code

function contact_user($type, &$edit, &$user, $category = NULL) {
  if ($type == 'insert') {
    $edit['contact'] = variable_get('contact_default_status', 1);
  }
}