function system_service_mail in Services 6
Same name and namespace in other branches
- 5 services/system_service/system_service.module \system_service_mail()
- 6.2 services/system_service/system_service.inc \system_service_mail()
- 7 services/system_service/system_service.inc \system_service_mail()
File
- services/
system_service/ system_service.inc, line 21 - @author Services Dev Team
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;
}
}