migrate.mail.inc 531 B

12345678910111213141516171819202122232425
  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. *
  16. * @return
  17. * TRUE if the mail was successfully accepted, otherwise FALSE.
  18. */
  19. public function mail(array $message) {
  20. return TRUE;
  21. }
  22. }