function print_mail_send in Printer, email and PDF versions 7.2
Same name and namespace in other branches
- 7 print_mail/print_mail.module \print_mail_send()
Worker callback for print_mail_cron_queue_info()
Parameters
array $data: An associative array containing:
- module: A module name to invoke hook_mail() on.
- key: A key to identify the e-mail sent.
- to: The e-mail address or addresses where the message will be sent to.
- language: Language object to use to compose the e-mail.
- params: Optional parameters to build the e-mail.
- from: Sets From to this value, if given.
These are the input arguments of the drupal_mail() function.
2 string references to 'print_mail_send'
- print_mail_cron_queue_info in print_mail/
print_mail.module - Implements hook_cron_queue_info().
- print_mail_form_submit in print_mail/
print_mail.inc - Form submission handler for print_mail_form().
File
- print_mail/
print_mail.module, line 182 - Displays Printer-friendly versions of Drupal pages.
Code
function print_mail_send($data) {
drupal_mail($data['module'], $data['key'], $data['to'], $data['language'], $data['params'], $data['from']);
}