function user_load_by_name

cis7 user.module user_load_by_name($name)
cle7 user.module user_load_by_name($name)
elmsmedia7 user.module user_load_by_name($name)
icor7 user.module user_load_by_name($name)
meedjum_blog7 user.module user_load_by_name($name)
mooc7 user.module user_load_by_name($name)

Fetch a user object by account name.

Parameters

$name: String with the account's user name.

Return value

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

See also

user_load_multiple()

33 calls to user_load_by_name()
bakery_eat_gingerbread_cookie in sites/all/modules/ulmus/bakery/bakery.module
Respond with account information.
bakery_eat_thinmint_cookie in sites/all/modules/ulmus/bakery/bakery.module
Update the user's login time to reflect them validating their email address.
bakery_login in sites/all/modules/ulmus/bakery/bakery.module
Special Bakery login callback authenticates the user and returns to slave.
bakery_pull_form_validate in sites/all/modules/ulmus/bakery/bakery.module
Make sure we are not trying to request an existing user.
bakery_register in sites/all/modules/ulmus/bakery/bakery.module
Special Bakery register callback registers the user and returns to slave.

... See full list

File

modules/user/user.module, line 397
Enables the user registration and login system.

Code

function user_load_by_name($name) {
  $users = user_load_multiple(array(), array('name' => $name));
  return reset($users);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.