You are here

function mail_logger_email_user in Mail Logger 6

Same name and namespace in other branches
  1. 7 mail_logger.module \mail_logger_email_user()

Load a user associated with a specific e-mail.

2 calls to mail_logger_email_user()
mail_logger_handler_field_mail::render in views/handlers/mail_logger_handler_field_mail.inc
mail_logger_mail_alter in ./mail_logger.module
Implementation of hook_mail_alter().

File

./mail_logger.module, line 293
Mail Logger module logs all outgoing mail that passes through the drupal_mail function.

Code

function mail_logger_email_user($email) {
  if ($email = mail_logger_parse_email($email)) {
    return user_load(array(
      'mail' => $email,
    ));
  }
}