You are here

function regcode_mailer_mail in Registration codes 6

Same name and namespace in other branches
  1. 6.2 regcode_mailer/regcode_mailer.module \regcode_mailer_mail()
  2. 7.2 regcode_mailer/regcode_mailer.module \regcode_mailer_mail()
  3. 7 regcode_mailer/regcode_mailer.module \regcode_mailer_mail()

Implements hook_mail()

File

regcode_mailer/regcode_mailer.module, line 154

Code

function regcode_mailer_mail($key, &$message, $params) {
  switch ($key) {
    case 'regcode':
      $message['subject'] = token_replace($params['subject'], 'regcode', $params['regcode']);
      $message['body'][] = token_replace($params['message'], 'regcode', $params['regcode']);
      break;
  }
}