function system_service_mail in Services 6.2
Same name and namespace in other branches
- 5 services/system_service/system_service.module \system_service_mail()
- 6 services/system_service/system_service.inc \system_service_mail()
- 7 services/system_service/system_service.inc \system_service_mail()
Implementation of hook_mail().
File
- services/
system_service/ system_service.inc, line 27 - Link general system functionalities to services module.
Code
function system_service_mail($mailkey, &$message, $params) {
$language = $message['language'];
$variables = user_mail_tokens($params['account'], $language);
$message['subject'] = t($params['subject'], $variables, $language->language);
$message['body'] = t($params['body'], $variables, $language->language);
foreach ($params['headers'] as $header => $val) {
$message['headers'][$header] = $val;
}
}