You are here

function workbench_email_mail in Workbench Email 7

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

Implements hook_mail().

File

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

Code

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