You are here

function commons_misc_mail_alter in Drupal Commons 7.3

Implements hook_mail_alter();

File

modules/commons/commons_misc/commons_misc.module, line 24

Code

function commons_misc_mail_alter(&$message) {
  if (strstr($message['to'], '@') == '@example.com') {
    $message['send'] = FALSE;
  }
}