function print_mail_action_submit in Printer, email and PDF versions 6
Same name and namespace in other branches
- 7.2 print_mail/print_mail.module \print_mail_action_submit()
- 7 print_mail/print_mail.module \print_mail_action_submit()
Action handler for the print_mail_action_submit
File
- print_mail/
print_mail.module, line 633 - Displays Printer-friendly versions of Drupal pages.
Code
function print_mail_action_submit($node, $settings) {
require_once drupal_get_path('module', 'print_mail') . '/print_mail.inc';
$form_state['values'] = array(
'path' => 'node/' . $node->nid,
'cid' => NULL,
'title' => $node->title,
'fld_from_addr' => $settings['from'],
'fld_from_name' => $settings['from_name'],
'txt_to_addrs' => $settings['to'],
'fld_subject' => $settings['subject'],
'txt_message' => $settings['message'],
'chk_teaser' => FALSE,
);
print_mail_form_submit(NULL, $form_state);
}