user.module

Version 1.1139 (checked in on 2010/03/20 at 19:06:12 by dries)

Enables the user registration and login system.

Constants

NameDescription
EMAIL_MAX_LENGTHMaximum length of user e-mail text field.
USERNAME_MAX_LENGTHMaximum length of username text field.

Functions

NameDescription
template_preprocess_user_pictureProcess variables for user-picture.tpl.php.
theme_user_listMake a list of users.
theme_user_signatureTheme output of user signature.
user_accessDetermine whether the user has a given privilege.
user_account_formHelper function to add default user account fields to user registration and edit form.
user_account_form_validateForm validation handler for user_account_form().
user_action_infoImplements hook_action_info().
user_authenticateTry to validate the user's login credentials locally.
user_block_configureImplements hook_block_configure().
user_block_infoImplements hook_block_info().
user_block_saveImplements hook_block_save().
user_block_user_actionBlocks the current user.
user_block_viewImplements hook_block_view().
user_build_contentBuilds a structured array representing the profile content.
user_build_filter_queryExtends a query object for user administration filters based on session.
user_cancelCancel a user account.
user_cancel_accessMenu access callback; limit access to account cancellation pages.
user_cancel_urlGenerate a URL to confirm an account cancellation request.
user_category_loadReturn a user object after checking if any profile category in the path exists.
user_comment_viewImplements hook_comment_view().
user_cookie_saveSaves visitor information as a cookie so it can be reused.
user_deleteDelete a user.
user_delete_multipleDelete multiple user accounts.
user_edit_accessAccess callback for user account editing.
user_element_infoImplements hook_element_info().
user_entity_infoImplements hook_entity_info().
user_external_load
user_external_login_registerHelper function for authentication modules. Either logs in or registers the current user, based on username. Either way, the global $user object is populated and login tasks are performed.
user_field_extra_fieldsImplements hook_field_extra_fields().
user_file_deleteImplements hook_file_delete().
user_file_downloadImplements hook_file_download().
user_file_referencesImplements hook_file_references().
user_filtersList user administration filters that can be applied.
user_formsImplements hook_forms().
user_form_process_password_confirmForm element process handler for client-side password validation.
user_get_authmapsDiscover which external authentication module(s) authenticated a username.
user_helpImplement hook_help().
user_image_style_deleteImplements hook_image_style_delete().
user_image_style_saveImplements hook_image_style_save().
user_initImplements hook_init().
user_is_anonymous
user_is_blockedChecks for usernames blocked by user administration.
user_is_logged_in
user_loadFetch a user object.
user_load_by_mailFetch a user object by email address.
user_load_by_nameFetch a user object by account name.
user_load_multipleLoad multiple users based on certain conditions.
user_loginForm builder; the main user login form.
user_login_authenticate_validateA validate handler on the login form. Check supplied username/password against local users table. If successful, $form_state['uid'] is set to the matching user ID.
user_login_block
user_login_default_validatorsSet up a series for validators which check for blocked users, then authenticate against local database, then return an error if authentication fails. Distributed authentication modules are welcome to use hook_form_alter() to change this series in...
user_login_destinationHelper function to rewrite the destination to avoid redirecting to login page after login.
user_login_finalizeFinalize the login process. Must be called when logging in a user.
user_login_final_validateThe final validation handler on the login form.
user_login_name_validateA FAPI validate handler. Sets an error if supplied username has been blocked.
user_login_submitSubmit 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_mailImplements hook_mail().
user_mail_tokensToken callback to add unsafe tokens for user mails.
user_menuImplements hook_menu().
user_modules_installedImplements hook_modules_installed().
user_modules_uninstalledImplements hook_modules_uninstalled().
user_module_invokeInvokes hook_user() in every module.
user_multiple_cancel_confirm
user_multiple_cancel_confirm_submitSubmit handler for mass-account cancellation form.
user_multiple_role_editCallback function for admin mass adding/deleting a user role.
user_node_loadImplements hook_node_load().
user_page_titleMenu item title callback - use the user name.
user_passwordGenerate a random alphanumeric password.
user_pass_rehash
user_pass_reset_urlGenerates a unique URL for a user to login and reset their password.
user_permissionImplements hook_permission().
user_permission_get_modulesDetermine the modules that permissions belong to.
user_preferred_languageGet the language object preferred by the user. This user preference can be set on the user account editing page, and is only available if there are more than one languages enabled on the site. If the user did not choose a preferred language, or is the...
user_rdf_mappingImplements hook_rdf_mapping().
user_register_access
user_register_formForm builder; the user registration form.
user_register_form_pre_renderForm pre-render callback to clean up the user_register_form.
user_register_submitSubmit handler for the user registration form.
user_rolesRetrieve an array of roles matching specified conditions.
user_role_change_permissionsChange permissions for a user role.
user_role_deleteDelete a user role from database.
user_role_grant_permissionsGrant permissions to a user role.
user_role_loadFetch a user role from database.
user_role_permissionsDetermine the permissions for one or more roles.
user_role_revoke_permissionsRevoke permissions from a user role.
user_role_saveSave a user role to the database.
user_saveSave changes to a user account or add a new user.
user_search_accessImplements hook_search_access().
user_search_executeImplements hook_search_execute().
user_search_infoImplements hook_search_info().
user_set_authmapsSave mappings of which external authentication module(s) authenticated a user. Maps external usernames to user ids in the users table.
user_themeImplements hook_theme().
user_uid_only_optional_to_argReturns $arg or the user ID of the current user if $arg is '%' or empty.
user_uid_optional_loadLoad either a specified or the current user account.
user_uid_optional_to_argReturns $arg or the user ID of the current user if $arg is '%' or empty.
user_uriEntity uri callback.
user_user_categoriesImplements hook_user_categories().
user_user_operationsImplements hook_user_operations().
user_user_operations_blockCallback function for admin mass blocking users.
user_user_operations_unblockCallback function for admin mass unblocking users.
user_user_presaveImplements hook_user_presave().
user_user_viewImplements hook_user_view().
user_validate_current_passForm validation handler for the current password on the user_account_form().
user_validate_mail
user_validate_nameVerify the syntax of the given name.
user_validate_picture
user_viewGenerate an array for rendering the given user.
user_view_accessUser view access callback.
user_view_pagePage callback wrapper for user_view().
_user_cancelLast batch processing step for cancelling a user account.
_user_categoriesRetrieve a list of all user setting/information categories and sort them by weight.
_user_mail_notifyConditionally create and send a notification email when a certain operation happens on the given user account.
_user_mail_textReturns a mail string for a variable name.
_user_sort