You are here

function queue_mail_test_mail in Queue Mail 8

Same name and namespace in other branches
  1. 7 queue_mail_test/queue_mail_test.module \queue_mail_test_mail()

Implements hook_mail().

File

tests/modules/queue_mail_test/queue_mail_test.module, line 13
Module for testing the Queue Mail module.

Code

function queue_mail_test_mail($key, &$message, $params) {
  $message['body'][] = $params['content'];
  if ($key === 'skipped') {
    $message['send'] = FALSE;
  }
}