You are here

function devel_test_mail in Devel 8

Same name and namespace in other branches
  1. 8.3 tests/modules/devel_test/devel_test.module \devel_test_mail()
  2. 8.2 tests/modules/devel_test/devel_test.module \devel_test_mail()
  3. 4.x tests/modules/devel_test/devel_test.module \devel_test_mail()

Implements hook_mail().

File

tests/modules/devel_test/devel_test.module, line 11
Helper module for devel test.

Code

function devel_test_mail($key, &$message, $params) {
  switch ($key) {
    case 'devel_mail_log':
      $message['subject'] = $params['subject'];
      $message['body'][] = $params['body'];
      $message['headers']['From'] = $params['headers']['from'];
      $message['headers'] += $params['headers']['additional'];
      break;
  }
}