You are here

function print_mail_mollom_form_info in Printer, email and PDF versions 6

Same name and namespace in other branches
  1. 7.2 print_mail/print_mail.module \print_mail_mollom_form_info()
  2. 7 print_mail/print_mail.module \print_mail_mollom_form_info()

Implementation of hook_mollom_form_info().

File

print_mail/print_mail.module, line 534
Displays Printer-friendly versions of Drupal pages.

Code

function print_mail_mollom_form_info($form_id) {
  switch ($form_id) {
    case 'print_mail_form':
      $form_info = array(
        'elements' => array(
          'fld_from_addr' => t('Sender email'),
          'fld_from_name' => t('Sender name'),
          'txt_to_addrs' => t('Recipients'),
          'fld_subject' => t('Subject'),
          'fld_title' => t('Page to be sent'),
          'txt_message' => t('Your message'),
        ),
        'mapping' => array(
          'post_title' => 'fld_title',
          'author_name' => 'fld_from_name',
          'author_mail' => 'fld_from_addr',
        ),
      );
      break;
  }
  return $form_info;
}