user_load

Versions
4.6 – 6
user_load($array = array())
7
user_load($uid, $reset = FALSE)

Fetch a user object.

See also

user_load_multiple()

Parameters

$uid Integer specifying the user id.

$reset A boolean indicating that the internal cache should be reset.

Return value

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

▾ 20 functions call user_load()

comment_tokens in modules/comment/comment.tokens.inc
Implement hook_tokens().
install_configure_form_submit in ./install.php
Form API submit for the site configuration form.
node_preview in modules/node/node.pages.inc
Generate a node preview.
node_tokens in modules/node/node.tokens.inc
Implement hook_tokens().
profile_block_view in modules/profile/profile.module
Implement hook_block_view().
rdf_preprocess_username in modules/rdf/rdf.module
Implements MODULE_preprocess_HOOK().
rdf_preprocess_user_profile in modules/rdf/rdf.module
Implements MODULE_preprocess_HOOK().
statistics_user_tracker in modules/statistics/statistics.pages.inc
system_tokens in modules/system/system.tokens.inc
Implement hook_tokens().
url_alter_test_url_outbound_alter in modules/simpletest/tests/url_alter_test.module
Implement hook_url_outbound_alter().
user_cancel in modules/user/user.module
Cancel a user account.
user_category_load in modules/user/user.module
Return a user object after checking if any profile category in the path exists.
user_external_load in modules/user/user.module
user_load_self in modules/user/user.module
user_login_submit in modules/user/user.module
Submit handler for the login form. Load $user object and perform standard login tasks. The user is then redirected to the My Account page. Setting the destination in the query string overrides the redirect.
user_pass_reset in modules/user/user.pages.inc
Menu callback; process one time login link and redirects to the user page on success.
user_save in modules/user/user.module
Save changes to a user account or add a new user.
user_uid_optional_load in modules/user/user.module
Load either a specified or the current user account.
_trigger_normalize_comment_context in modules/trigger/trigger.module
Loads associated objects for comment triggers.
_trigger_normalize_node_context in modules/trigger/trigger.module
Loads associated objects for node triggers.

Code

modules/user/user.module, line 245

<?php
function user_load($uid, $reset = FALSE) {
  $users = user_load_multiple(array($uid), array(), $reset);
  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.