function views_send_mail in Views Send 6
Same name and namespace in other branches
- 8 views_send.module \views_send_mail()
- 7 views_send.module \views_send_mail()
Implementation of hook_mail().
See also
http://api.drupal.org/api/function/hook_mail/6
File
- ./
views_send.module, line 559 - The Views Send module.
Code
function views_send_mail($key, &$message, $params) {
// This is a simple message send. User inputs the content directly.
if ($key == 'direct') {
// Set the subject.
$message['subject'] = $params['subject'];
// Set the body.
$message['body'] = $params['body'];
// Add additional headers.
$message['headers'] += $params['headers'];
}
elseif ($key == 'node') {
// Translations, theming, etc...
}
}