You are here

function workbench_email_mail in Workbench Email 7.3

Same name and namespace in other branches
  1. 8 workbench_email.module \workbench_email_mail()
  2. 7 workbench_email.module \workbench_email_mail()
  3. 2.x workbench_email.module \workbench_email_mail()

Implements hook_mail().

File

./workbench_email.module, line 256
Code for the Workbench Email Module.

Code

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