user_load_by_mail

Versions
7
user_load_by_mail($mail)

Fetch a user object by email address.

See also

user_load_multiple()

Parameters

$mail String with the account's e-mail address.

Return value

A fully-loaded $user object upon successful user load or FALSE if user cannot be loaded.

▾ 1 function calls user_load_by_mail()

_update_cron_notify in modules/update/update.fetch.inc
Perform any notifications that should be done once cron fetches new data.

Code

modules/user/user.module, line 302

<?php
function user_load_by_mail($mail) {
  $users = user_load_multiple(array(), array('mail' => $mail));
  return reset($users);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.