function cleantalk_mail in Anti Spam by CleanTalk 7
Same name and namespace in other branches
- 8 cleantalk.module \cleantalk_mail()
- 7.2 cleantalk.module \cleantalk_mail()
Implements hook_mail().
File
- ./
cleantalk.module, line 1504 - 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'];
}
}