function answers_mail in Answers 7.2
Same name and namespace in other branches
- 7 includes/answers.notify.inc \answers_mail()
- 7.3 includes/answers.notify.inc \answers_mail()
File
- includes/
answers.notify.inc, line 113 - Notification functions for the 'Answers' module
Code
function answers_mail($key, &$message, $params) {
$langcode = $message['language']->language;
$message['headers']['Mime-Version'] = '1.0';
$message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed';
switch ($key) {
case 'new_answer':
$subject_template = variable_get('answers_new_answer_notice_subject', '');
$message['subject'] = t($subject_template, $params, array(
'langcode' => $langcode,
));
$body_template = variable_get('answers_new_answer_notice_body', '');
$message['body'][] = t($body_template, $params, array(
'langcode' => $langcode,
));
break;
}
}