You are here

function contact_mollom_form_info_alter in Contact 6.2

Implements hook_mollom_form_info_alter().

File

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

Code

function contact_mollom_form_info_alter(&$form_info) {
  $form_info['contact_mail_page']['bypass access'] = array(
    'administer contact forms',
  );
  $form_info['contact_mail_user']['bypass access'] = array(
    'administer contact forms',
  );
  $form_info['contact_mail_user']['mapping']['author_name'] = 'name';
  $form_info['contact_mail_user']['mapping']['author_mail'] = 'mail';
}