You are here

function answers_mail in Answers 7.3

Same name and namespace in other branches
  1. 7 includes/answers.notify.inc \answers_mail()
  2. 7.2 includes/answers.notify.inc \answers_mail()

Implements hook_mail().

File

includes/answers.notify.inc, line 73

Code

function answers_mail($key, &$message, $params) {
  switch ($key) {
    case 'new_answer':
      $subject_template = variable_get('answers_new_answer_notice_subject', ANSWERS_DEFAULT_NEW_ANSWER_NOTICE_SUBJECT);
      $body_template = variable_get('answers_new_answer_notice_body', ANSWERS_DEFAULT_NEW_ANSWER_NOTICE_BODY);
      break;
  }
  answers_mail_helper($key, $message, $params, $subject_template, $body_template);
}