function views_send_mail in Views Send 7
Same name and namespace in other branches
- 8 views_send.module \views_send_mail()
- 6 views_send.module \views_send_mail()
Implements hook_mail().
File
- ./
views_send.module, line 931 - 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...
}
}