migrate.mail.inc 525 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @file
  4. * Null-op mail class, to keep migration from spamming innocent users.
  5. */
  6. class MigrateMailIgnore extends DefaultMailSystem {
  7. /**
  8. * On an email request, do nothing and say we did.
  9. *
  10. * @see http://php.net/manual/en/function.mail.php
  11. * @see drupal_mail()
  12. *
  13. * @param $message
  14. * A message array, as described in hook_mail_alter().
  15. * @return
  16. * TRUE if the mail was successfully accepted, otherwise FALSE.
  17. */
  18. public function mail(array $message) {
  19. return TRUE;
  20. }
  21. }