user_load

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

Fetch a user object.

Parameters

$array An associative array of attributes to search for in selecting the user, such as user name or e-mail address.

Return value

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

▾ 239 functions call user_load()

about_this_node_get_info in contributions/about_this_node/about_this_node.module
Gather information about the node and return it as a keyed array
advanced_forum_views_post_render in contributions/advanced_forum/advanced_forum.module
Post render a view and replace any advanced forum tokens.
advanced_profile_friends_gallery_header in contributions/advanced_profile/includes/views/views.inc
apply_for_role_admin_form in contributions/apply_for_role/apply_for_role.admin.inc
User management
apply_for_role_apply_for_role in contributions/apply_for_role/apply_for_role.module
Implementation of hook_apply_for_role().
apply_for_role_token_values in contributions/apply_for_role/apply_for_role.token.inc
Implementation of hook_token_values().
apply_for_role_user_has_role in contributions/apply_for_role/apply_for_role.module
Check if a user has a given role.
arcade_block in contributions/arcade/arcade.module
Implementation of hook_block().
asset_youtube_asset_type in contributions/asset/asset_youtube/asset_youtube.module
author_pane_get_block in contributions/author_pane/author_pane.module
autoassignrole_user in contributions/autoassignrole/autoassignrole.module
Implementation of hook_user().
avatar_selection_form_user_profile_form_alter in contributions/avatar_selection/avatar_selection.module
Implementation of hook_form_alter().
batch_birthdays_sync_b2p in contributions/birthdays/birthdays.sync.inc
Birthdays to Profile batch copying process
batch_birthdays_sync_p2b in contributions/birthdays/birthdays.sync.inc
Profile to Birthdays batch copying process.
biblio_user_load in contributions/biblio/biblio.module
load user object from arg, used for %biblio_user placeholders in menu paths
birthdays_mail in contributions/birthdays/birthdays.mail.inc
Implementation of hook_mail().
birthdays_view_page in contributions/birthdays/birthdays.page.inc
Show birthdays page @desc Callback for birthdays menu item to show a page which lists all users.
campaignmonitor_get_field_key_values in contributions/campaignmonitor/campaignmonitor.module
Get all the potential merge var values for a given user
cas_login_check in contributions/cas/cas.module
Checks to see if the user needs to be logged in
cas_logout in contributions/cas/cas.module
Logs a user out of drupal and then out of cas
cck_gallery_menu in contributions/cck_gallery/cck_gallery.module
Implementation of hook_menu().
comment_deploy_check in contributions/deploy/modules/comment_deploy/comment_deploy.module
Implementation of hook_deploy_check().
comment_form_add_preview in 6/modules/comment/comment.module
Form builder; Generate and validate a comment preview form.
comment_validate in 6/modules/comment/comment.module
Validate comment data.
content_profile_form_alter in contributions/content_profile/content_profile.module
Implementation of hook_form_alter().
ctools_argument_uid_context in contributions/ctools/plugins/arguments/uid.inc
Discover if this argument gives us the user we crave.
ctools_argument_user_name_context in contributions/ctools/plugins/arguments/user_name.inc
Discover if this argument gives us the user we crave.
ctools_context_create_user in contributions/ctools/plugins/contexts/user.inc
It's important to remember that $conf is optional here, because contexts are not always created from the UI.
ctools_user_from_node_context in contributions/ctools/plugins/relationships/user_from_node.inc
Return a new context based on an existing context.
custom_breadcrumbs_token_types in contributions/custom_breadcrumbs/custom_breadcrumbs.module
Helper function to prepare some common contexts for token substitution.
deploy_list_form in contributions/deploy/deploy.plans.admin.inc
Display a list of all items in a specified plan.
devel_node_access_block in contributions/devel/devel_node_access.module
devel_switch_user in contributions/devel/devel.module
Switch from original user to another user and back.
devel_switch_user_form_validate in contributions/devel/devel.module
distributor_service_delete_node in contributions/content_distribution/modules/distributor_service/distributor_service.inc
look's up the node id on the local server based on the node id which is being deleted on the other site and delete's the corresponding node
domain_user_domainview in contributions/domain/domain_user/domain_user.module
Implement hook_domainview()
drush_drupal_login in contributions/drush/drush.php
Log the given user in to a bootstrapped Drupal site.
drush_generate_nodescontent in contributions/devel/devel_generate.drush.inc
Command callback. Generate a number of content.
drush_provision_drupal_provision_login_reset in contributions/provision/platform/login_reset.provision.inc
Generate a one-time login reset url
event_form_alter in contributions/event/event.module
Implementation of hook_form_alter
facebook_status_block in contributions/facebook_status/facebook_status.module
Implementation of hook_block().
facebook_status_box in contributions/facebook_status/facebook_status.module
The status form.
facebook_status_box_submit in contributions/facebook_status/facebook_status.module
Submit function for the status update form.
facebook_status_choose_owner in contributions/facebook_status/facebook_status.module
Determines the user whose status should be shown.
facebook_status_form_twitter_account_list_form_alter in contributions/facebook_status/facebook_status.module
Implementation of hook_form_FORM_ID_alter(). No need to check permissions since the form is already restricted.
facebook_status_get_status in contributions/facebook_status/facebook_status.module
Returns a status or statuses for a single user.
facebook_status_tags_get_status_tags in contributions/facebook_status/facebook_status_tags.module
Gets the tags that a given status has.
facebook_status_token_values in contributions/facebook_status/facebook_status.module
Implementation of hook_token_values().
feedapi_cron in contributions/feedapi/feedapi.module
Implementation of hook_cron().
filefield_feeds_set_target in contributions/feeds/mappers/filefield.inc
Implementation of hook_feeds_set_target().
flag_service_flag in contributions/flag/includes/flag.services.inc
Service wrapper to flag a content.
flag_service_flag_access in contributions/flag/includes/flag.services.inc
Access callback to check a user has access to a flag operation via Services.
gmap_location_author_block_view in contributions/gmap/gmap_location.module
gmap_location_user_point in contributions/gmap/gmap_location.module
AHAH callback for getting the contents of a user point popup.
googleanalytics_update_6002 in contributions/google_analytics/googleanalytics.install
Upgrade role settings and per user tracking settings of "User 1" and remove outdated tracking variables.
hook_calculate_tax in contributions/ubercart/docs/hooks.php
Calculate tax line items for an order.
hook_domainview in contributions/domain/API.php
Allows Domain modules to add columns to the domain list view at path 'admin/build/domain/view'.
hook_line_item_alter in contributions/ubercart/docs/hooks.php
Alter a line item on an order when the order is loaded.
hosting_client_insert in contributions/hosting/client/hosting_client.module
Implementation of hook_insert().
hosting_client_update in contributions/hosting/client/hosting_client.module
Implementation of hook_update().
install_configure_form_submit in 6/install.php
Form API submit for the site configuration form.
install_create_admin_user in contributions/provision/platform/drupal/install_6.inc
install_save_node in contributions/install_profile_api/core/node.inc
Given an array of custom properties, save a node. This function is written to be self-documenting, as it explicitly lists the properties you can set, and shows the defaults if you don't set them.
install_send_welcome_mail in contributions/provision/platform/drupal/install_7.inc
known_user_role_load_user in contributions/known_user_role/known_user_role.module
Loads the user object of the known user to access other info, e.g. profile data
live_comment_preview in contributions/live/comment/live.comment.inc
Construct and Output comment preview securely.
live_node_preview in contributions/live/node/live.node.inc
Construct and Output node preview securely.
live_node_validate in contributions/live/node/live.node.inc
Validate the passed node data.
lm_paypal_mail_user in contributions/lm_paypal/lm_paypal.module
Email a user
location_locationapi in contributions/location/location.module
Implementation of hook_locationapi().
logintoboggan_form_alter in contributions/logintoboggan/logintoboggan.module
Implementation of hook_form_alter()
masquerade_access in contributions/masquerade/masquerade.module
Determine if the current user has permission to switch users.
masquerade_admin_settings in contributions/masquerade/masquerade.module
masquerade_admin_settings_submit in contributions/masquerade/masquerade.module
masquerade_admin_settings_validate in contributions/masquerade/masquerade.module
masquerade_block_1 in contributions/masquerade/masquerade.module
Masquerade block form.
masquerade_block_1_submit in contributions/masquerade/masquerade.module
Masquerade block form submission.
masquerade_block_1_validate in contributions/masquerade/masquerade.module
Masquerade block form validation.
masquerade_switch_back in contributions/masquerade/masquerade.module
Page callback that allows a user who is currently masquerading to become a new user.
masquerade_switch_user in contributions/masquerade/masquerade.module
Page callback that allows a user with the right permissions to become the selected user.
masquerade_user in contributions/masquerade/masquerade.module
Implementation of hook_user().
media_mover_api_get_user_from_file in contributions/media_mover/media_mover_api.module
Takes an incoming file and looks for user data on the file array. Returns false if it can not find any otherwise returns a user
media_mover_ftp_extract_user in contributions/media_mover/media_mover_ftp/media_mover_ftp.module
Takes an incoming file from from FTP and tries to find a user from the file name or path
media_mover_ftp_token_check in contributions/media_mover/media_mover_ftp/media_mover_ftp.module
Checkes a token string against the database to see if it is a user id
media_mover_workflow_ng_user_argument_handler in contributions/media_mover/contrib/mm_workflow_ng/mm_workflow_ng.module
messaging_debug_post_form_submit in contributions/messaging/messaging_debug/messaging_debug.module
Post test message
messaging_load_user in contributions/messaging/messaging.module
Helper user loading function with static caching
mimemail_prepare in contributions/mimemail/mimemail.module
Sends a mime-encoded e-mail.
mm_cck_node_save in contributions/media_mover/mm_cck/mm_cck.module
Save to the CCK field
mm_ffmpeg_error_alert in contributions/media_mover/mm_ffmpeg/mm_ffmpeg.module
this a custom alert if the conversion fails
mm_node_config_save_node_validate in contributions/media_mover/mm_node/mm_node.module
Validation duties for the node save configuration
mm_node_map_user in contributions/media_mover/mm_node/mm_node.module
this function lets users map incoming data to node values for advanced node data saving. User data is handled by _mm_node_save
nodewords_extra_dc_contributor_prepare in contributions/nodewords/nodewords_extra/nodewords_extra.module
Set the meta tag content.
nodewords_extra_dc_creator_prepare in contributions/nodewords/nodewords_extra/nodewords_extra.module
Set the meta tag content.
node_export_drush_callback_import in contributions/node_export/node_export.drush.inc
Drush command callback.
node_preview in 6/modules/node/node.pages.inc
Generate a node preview.
node_submit in 6/modules/node/node.module
Prepare node for save and allow modules to make changes.
node_validate in 6/modules/node/node.module
Perform validation checks on the given node.
notifications_content_author_name in contributions/notifications/notifications_content/notifications_content.module
Field name callback, author uid to user name
notifications_content_author_uid in contributions/notifications/notifications_content/notifications_content.module
notifications_content_notifications in contributions/notifications/notifications_content/notifications_content.module
Implementation of hook_notifications()
notifications_lite_queue_event in contributions/notifications/notifications_lite/notifications_lite.module
Insert lite notification into queue.
notifications_lite_send in contributions/notifications/notifications_lite/notifications_lite.module
Sends out a notification for a user
notifications_page_unsubscribe in contributions/notifications/notifications.pages.inc
Menu callback for unsubscribe page
notifications_ui_block in contributions/notifications/notifications_ui/notifications_ui.module
Implementation of hook_block()
og_add_users_og_names_validate in contributions/og/og.pages.inc
og_add_users_submit in contributions/og/og.pages.inc
og_confirm_unsubscribe_submit in contributions/og/og.pages.inc
Confirm og unsubscription submit handler
og_field_crud_group in contributions/og/og/og.field.inc
Add or remove a group, based on the field CRUD.
og_invite_form_validate in contributions/og/og.pages.inc
og_is_group_admin in contributions/og/og.module
og_is_group_member in contributions/og/og.module
Check a user's membership in a group.
og_load_object in contributions/og/og/og.module
Return a re-loaded object with its fields.
og_nodeapi in contributions/og/og.module
Implementation of hook_nodeapi().
og_notifications_og in contributions/og/modules/og_notifications/og_notifications.module
Implementation of hook_og().
og_rules_events_argument_og_user in contributions/og/includes/og.rules.inc
Handler to get the user.
og_subscribe in contributions/og/og.pages.inc
og_ui_subscribe in contributions/og/og_ui/og_ui.pages.inc
Manage user subscription to a group.
og_xmlrpc_subscribe_user in contributions/og/includes/og.xmlrpc.inc
page_title_page_get_title in contributions/page_title/page_title.module
Determines what title should be sent to the page template.
profile_block in 6/modules/profile/profile.module
Implementation of hook_block().
profile_browse in 6/modules/profile/profile.pages.inc
Menu callback; display a list of user information.
realname_privatemsg_autocomplete in contributions/realname/realname.module
Intercept Privatemsg autocomplete results for usernames.
revenue_sharing_basic_choose_client in contributions/adsense/old/revenue_sharing_basic/revenue_sharing_basic.module
Provide the applicable Publisher ID, based on the configured probabilities
rules_action_load_user in contributions/rules/rules/modules/user.rules.inc
Loads a user
rules_action_node_load_author in contributions/rules/rules/modules/node.rules.inc
Loads the content author
rules_action_user_create in contributions/rules/rules/modules/user.rules.inc
Action: Creates a user.
rules_events_argument_comment_author in contributions/rules/rules/modules/comment.rules.inc
Gets the author of the comment
rules_events_argument_global_user in contributions/rules/rules/modules/user.rules.inc
Gets the user account of the "acting" user - which is always the global user
rules_events_argument_node_author in contributions/rules/rules/modules/node.rules.inc
Gets the author's account of a node
salesforce_api_demo in contributions/salesforce/salesforce_api/salesforce_api.admin.inc
Demonstrates some of the API functionality through the Salesforce class and fieldmap functionality.
sf_user_export in contributions/salesforce/sf_user/sf_user.module
Exports a user to Salesforce using the specified fieldmap and stores the ID of the Salesforce object for the user.
sf_user_import in contributions/salesforce/sf_user/sf_user.module
Imports data from Salesforce into a user.
sf_user_salesforce_form in contributions/salesforce/sf_user/sf_user.module
statistics_user_tracker in 6/modules/statistics/statistics.pages.inc
stormexpense_list in contributions/storm/stormexpense/stormexpense.admin.inc
stormperson_load in contributions/storm/stormperson/stormperson.module
stormtimetracking_list in contributions/storm/stormtimetracking/stormtimetracking.admin.inc
subscriptions_mail_cron in contributions/subscriptions/subscriptions_mail.module
Implementation of hook_cron().
subscriptions_update_7 in contributions/subscriptions/subscriptions.install
Database update function 7 for 5.x-2.0 rewrite.
system_send_email_action in 6/modules/system/system.module
Implementation of a configurable Drupal action. Sends an email.
template_preprocess_birthdays_block in contributions/birthdays/birthdays.module
Preprocess variables to format the birthdays block.
template_preprocess_views_ui_edit_view in contributions/views/includes/admin.inc
Preprocess the view edit page.
theme_facebook_status_item in contributions/facebook_status/facebook_status.module
Formats a status. Does not check to make sure the status belongs to the relevant user if a status is passed in.
theme_file_browser_preview in contributions/fileframework/contrib/browser/file_browser.theme.inc
Outputs a file preview block.
theme_file_info in contributions/fileframework/file.theme.inc
Theme for ajax file info.
theme_gmap_location_infowindow_node__og in contributions/gmap/gmap_location.module
Theme an Organic Groups node info window.
theme_page_manager_lock in contributions/ctools/page_manager/theme/page_manager.theme.inc
Draw the "this task is locked from editing" box.
theme_userreference_formatter_default in contributions/cck/modules/userreference/userreference.module
Theme function for 'default' userreference field formatter.
theme_userreference_formatter_plain in contributions/cck/modules/userreference/userreference.module
Theme function for 'plain' userreference field formatter.
theme_user_relationship_implications_page in contributions/user_relationships/user_relationship_implications/user_relationship_implications.module
Categorized list of relationships for a given user
theme_weblinks_user_link in contributions/weblinks/weblinks.module
Theme the user link.
token_normalize_context in contributions/token/token_actions.module
Load, into the context, the common objects user and node so we can use their tokens. Somtimes Trigger, or Actions, load them for us, but sometimes not.
twitter_actions_set_status_action in contributions/twitter/twitter_actions/twitter_actions.module
Implementation of a configurable Drupal action. Sends an email.
twitter_get_user_accounts in contributions/twitter/twitter.inc
twitter_signin_oauth_callback_submit in contributions/twitter/twitter_signin/twitter_signin.module
uc_auction_bid_history in contributions/uc_auction/uc_auction.module
List bids.
uc_auction_bid_table_form_submit in contributions/uc_auction/uc_auction.module
Submit placed bids.
uc_auction_cron in contributions/uc_auction/uc_auction.module
Implementation of hook_cron().
uc_auction_now_order in contributions/uc_auction/uc_auction_now/uc_auction_now.module
Implementation of hook_order() (an Ubercart hook).
uc_auction_token_values in contributions/uc_auction/uc_auction.module
Implementation of hook_token_values (a Token hook).
uc_cart_complete_sale in contributions/ubercart/uc_cart/uc_cart.module
Complete a sale, including adjusting order status and creating user account.
uc_file_action_order_renew in contributions/ubercart/uc_file/uc_file.ca.inc
Renew an orders product files.
uc_order_create_form_submit in contributions/ubercart/uc_order/uc_order.admin.inc
See also uc_order_create_form()
uc_order_new in contributions/ubercart/uc_order/uc_order.module
Generate a new order for user $uid.
uc_order_pane_quotes in contributions/ubercart/shipping/uc_quote/uc_quote.module
Shipping quote order pane callback.
uc_order_user_load in contributions/ubercart/uc_order/uc_order.module
Load an order user if available, else, load the current user.
uc_payment_enter in contributions/ubercart/payment/uc_payment/uc_payment.module
Enter a payment for an order.
uc_roles_action_order_renew in contributions/ubercart/uc_roles/uc_roles.ca.inc
Renew an orders product roles.
uc_roles_cron in contributions/ubercart/uc_roles/uc_roles.module
Implementation of hook_cron().
uc_roles_deletion_form_submit in contributions/ubercart/uc_roles/uc_roles.admin.inc
See also uc_roles_deletion_form()
uc_store_mail_recipient_language in contributions/ubercart/uc_store/uc_store.module
Get the preferred language for a user's email address.
uc_taxes_calculate_tax in contributions/ubercart/uc_taxes/uc_taxes.module
Calculate the amount and types of taxes that apply to an order.
userreference_rules_action_load in contributions/cck/modules/userreference/userreference.rules.inc
userreference_user_from_userref_context in contributions/cck/modules/userreference/panels/relationships/user_from_userref.inc
Return a new ctools context based on an existing context.
user_authenticate in 6/modules/user/user.module
Try to log in the user locally.
user_category_load in 6/modules/user/user.module
Return a user object after checking if any profile category in the path exists.
user_delete in 6/modules/user/user.module
Delete a user.
user_deploy in contributions/deploy/modules/user_deploy/user_deploy.module
Implementation of hook_deploy().
user_deploy_check_user in contributions/deploy/modules/user_deploy/user_deploy.module
Check to see if a user should be added to the deployment plan currently being pushed.
user_external_load in 6/modules/user/user.module
user_external_login_register in 6/modules/user/user.module
Helper function for authentication modules. Either login in or registers the current user, based on username. Either way, the global $user object is populated based on $name.
user_load_self in 6/modules/user/user.module
user_multiple_role_edit in 6/modules/user/user.module
Callback function for admin mass adding/deleting a user role.
user_pass_reset in 6/modules/user/user.pages.inc
Menu callback; process one time login link and redirects to the user page on success.
user_pass_validate in 6/modules/user/user.pages.inc
user_relationships_api_can_request in contributions/user_relationships/user_relationships_api/user_relationships_api.api.inc
Check whether a user is allowed to request a certain relationship type
user_relationships_request_relationship in contributions/user_relationships/user_relationships_api/user_relationships_api.api.inc
Request a new user relationship
user_relationships_ui_get_message in contributions/user_relationships/user_relationships_ui/user_relationships_ui.module
Public API for getting the set or default message
user_relationships_ui_pending_requested in contributions/user_relationships/user_relationships_ui/user_relationships_ui.forms.inc
Approve, Disapprove, or Cancel confirmation form
user_relationships_ui_remove in contributions/user_relationships/user_relationships_ui/user_relationships_ui.forms.inc
Confirm relationship removal.
user_relationships_ui_request_submit in contributions/user_relationships/user_relationships_ui/user_relationships_ui.actions.inc
Process relationship request.
user_relationships_ui_request_validate in contributions/user_relationships/user_relationships_ui/user_relationships_ui.actions.inc
Validate relationship request.
user_relationship_cancel_action in contributions/user_relationships/user_relationships_api/user_relationships_api.actions.inc
user_relationship_defaults_add_form_submit in contributions/user_relationships/user_relationship_defaults/user_relationship_defaults.module
Process default relationship add form submission.
user_relationship_defaults_add_form_validate in contributions/user_relationships/user_relationship_defaults/user_relationship_defaults.module
Validate the default relationship add page form submission.
user_relationship_defaults_load in contributions/user_relationships/user_relationship_defaults/user_relationship_defaults.module
Public API to retrieve the full list of default relationships
user_relationship_disapprove_action in contributions/user_relationships/user_relationships_api/user_relationships_api.actions.inc
user_relationship_invites_get_invite in contributions/user_relationships/user_relationship_invites/user_relationship_invites.module
Public API to grab the basic invite info
user_relationship_mailer_send_email in contributions/user_relationships/user_relationship_mailer/user_relationship_mailer.module
Sends mail to the appropriate user
user_relationship_node_access_form_alter in contributions/user_relationships/user_relationship_node_access/user_relationship_node_access.module
hook_form_alter()
user_save in 6/modules/user/user.module
Save changes to a user account or add a new user.
user_token_values in contributions/token/token_user.inc
Implementation of hook_token_values().
user_uid_optional_load in 6/modules/user/user.module
Load either a specified or the current user account.
user_user_operations_block in 6/modules/user/user.module
Callback function for admin mass blocking users.
user_user_operations_unblock in 6/modules/user/user.module
Callback function for admin mass unblocking users.
views_bulk_operations_fields_action in contributions/views_bulk_operations/fields.action.inc
views_ui_break_lock_confirm in contributions/views/includes/admin.inc
Page to delete a view.
webform_client_form in contributions/webform/webform.module
Client form generation function. If this is displaying an existing submission, pass in the $submission variable with the contents of the submission to be displayed.
workflow_token_values in contributions/workflow/workflow.module
Implementation of hook_token_values().
xmlsitemap_switch_user in contributions/xmlsitemap/xmlsitemap.module
Set the current user stored in $GLOBALS['user'].
_advanced_forum_preprocess_comment in contributions/advanced_forum/includes/advanced_forum_preprocess_comment.inc
_advanced_forum_preprocess_node in contributions/advanced_forum/includes/advanced_forum_preprocess_node.inc
_biblio_filter_info_line in contributions/biblio/biblio.pages.inc
_birthdays_send_user_message in contributions/birthdays/birthdays.mail.inc
Send all birthdays on this day a message
_boost_get_menu_router in contributions/boost/boost.module
Gets page_callback & page_arguments from menu_router table
_comment_form_submit in 6/modules/comment/comment.module
Prepare a comment for submission.
_content_retriever_save_nodes in contributions/content_distribution/modules/content_retriever/content_retriever.module
parses and saves nodes sent back from the web service
_custom_breadcrumbs_views_token_types in contributions/custom_breadcrumbs/custom_breadcrumbs_common.inc
Helper function to obtain the appropriate objects for token type replacement for this view.
_facebook_status_conversation in contributions/facebook_status/facebook_status.conversation.inc
Builds a page with a conversation view. A form to post a message to the other user's profile may be at the top. If it is and if the user has JavaScript enabled in their browser, the view will update via AJAX when the message is submitted.
_facebook_status_conversation_title in contributions/facebook_status/facebook_status.module
Generates the title for the conversation page.
_facebook_status_edit in contributions/facebook_status/facebook_status.edit.inc
The edit status form.
_facebook_status_edit_submit in contributions/facebook_status/facebook_status.edit.inc
Submit function for the status update form.
_facebook_status_openapi in contributions/facebook_status/facebook_status.openapi.inc
Handles the Open API.
_facebook_status_tags_filter in contributions/facebook_status/facebook_status_tags.module
Replaces tags with a themed version. Will not work on tags containing '@', '#', a space, or unusual punctuation.
_masquerade_test_user in contributions/masquerade/masquerade.module
_nodecomment_notify_mailalert in contributions/nodecomment/nodecomment_notify.module
Private function to send the notifications.
_override_node_options_apply_keys in contributions/override_node_options/override_node_options.module
_simplenews_user_load in contributions/simplenews/simplenews.module
Load a user or creates a dummy anonymous user.
_stormperson_beforesave in contributions/storm/stormperson/stormperson.module
_subscriptions_get_setting in contributions/subscriptions/subscriptions.module
Helper function to retrieve send_self/autosub_on_post/autosub_on_update/autosub_on_comment/ | 1, 0, digest/send_interval/send_updates/send_comments/ | -1 = use…
_trigger_normalize_comment_context in 6/modules/trigger/trigger.module
When an action is called in a context that does not match its type, the object that the action expects must be retrieved. For example, when an action that works on nodes is called during the comment hook, the node object is not available since the…
_trigger_normalize_node_context in 6/modules/trigger/trigger.module
When an action is called in a context that does not match its type, the object that the action expects must be retrieved. For example, when an action that works on users is called during the node hook, the user object is not available since the node…
_uc_quote_assemble_quotes in contributions/ubercart/shipping/uc_quote/uc_quote.pages.inc
Pull the get_quote_from_* triggers and assemble their returned data.
_uc_stock_send_mail in contributions/ubercart/uc_stock/uc_stock.module
Emails administrator regarding any stock level thresholds hit.
_update_cron_notify in 6/modules/update/update.fetch.inc
Perform any notifications that should be done once cron fetches new data.
_user_edit_submit in 6/modules/user/user.module
_user_relationship_blocks_view in contributions/user_relationships/user_relationship_blocks/user_relationship_blocks.module
helper function user_relationship_blocks_block delegates to when $op == 'view'
_views_bulk_operations_queue_process in contributions/views_bulk_operations/views_bulk_operations.module
Job Queue operations.

Code

6/modules/user/user.module, line 140

<?php
function user_load($array = array()) {
  // Dynamically compose a SQL query:
  $query = array();
  $params = array();

  if (is_numeric($array)) {
    $array = array('uid' => $array);
  }
  elseif (!is_array($array)) {
    return FALSE;
  }

  foreach ($array as $key => $value) {
    if ($key == 'uid' || $key == 'status') {
      $query[] = "$key = %d";
      $params[] = $value;
    }
    else if ($key == 'pass') {
      $query[] = "pass = '%s'";
      $params[] = md5($value);
    }
    else {
      $query[]= "LOWER($key) = LOWER('%s')";
      $params[] = $value;
    }
  }
  $result = db_query('SELECT * FROM {users} u WHERE '. implode(' AND ', $query), $params);

  if ($user = db_fetch_object($result)) {
    $user = drupal_unpack($user);

    $user->roles = array();
    if ($user->uid) {
      $user->roles[DRUPAL_AUTHENTICATED_RID] = 'authenticated user';
    }
    else {
      $user->roles[DRUPAL_ANONYMOUS_RID] = 'anonymous user';
    }
    $result = db_query('SELECT r.rid, r.name FROM {role} r INNER JOIN {users_roles} ur ON ur.rid = r.rid WHERE ur.uid = %d', $user->uid);
    while ($role = db_fetch_object($result)) {
      $user->roles[$role->rid] = $role->name;
    }
    user_module_invoke('load', $array, $user);
  }
  else {
    $user = FALSE;
  }

  return $user;
}
?>