function cleantalk_mail in Anti Spam by CleanTalk 8
Same name and namespace in other branches
- 7 cleantalk.module \cleantalk_mail()
- 7.2 cleantalk.module \cleantalk_mail()
Implements hook_mail().
File
- ./
cleantalk.module, line 590 - Main CleanTalk integration module functions.
Code
function cleantalk_mail($key, &$message, $params) {
if (isset($params['subject'])) {
$message['subject'] = $params['subject'];
}
if (isset($params['body'])) {
$message['body'][] = $params['body'];
}
if (isset($params['headers']) && is_array($params['headers'])) {
$message['headers'] += $params['headers'];
}
}