You are here

function multiple_email_mail in Multiple E-mail Addresses 7

Same name and namespace in other branches
  1. 6 multiple_email.module \multiple_email_mail()
  2. 2.x multiple_email.module \multiple_email_mail()

Implements hook_mail().

File

./multiple_email.module, line 642
multiple_email module file

Code

function multiple_email_mail($key, &$message, $params) {
  switch ($key) {
    case 'confirmation':
    case 'expiration':
      $message['subject'] = $params['subject'];
      $message['body'][] = $params['body'];
      $message['headers'] = array_merge($message['headers'], $params['headers']);
      break;
  }
}