You are here

function forward_mollom_form_info in Forward 8

Same name and namespace in other branches
  1. 8.3 forward.module \forward_mollom_form_info()
  2. 6 forward.module \forward_mollom_form_info()
  3. 7.3 forward.module \forward_mollom_form_info()
  4. 7 forward.module \forward_mollom_form_info()
  5. 7.2 forward.module \forward_mollom_form_info()

Implements hook_mollom_form_info().

File

./forward.module, line 89
Allows forwarding of entities by email.

Code

function forward_mollom_form_info($form_id) {
  switch ($form_id) {
    case 'forward_form':
      $form_info = array(
        'bypass access' => array(
          'administer forward',
        ),
        'mail ids' => array(
          'forward_send_entity',
        ),
        'elements' => array(
          'message' => t('Personal Message'),
        ),
        'mapping' => array(
          'author_name' => 'name',
          'author_mail' => 'email',
        ),
      );
      return $form_info;
  }
}