Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
user_has_role modules/user/user.module Checks if a user has a role.
user_help modules/user/user.module Implements hook_help().
user_image_style_delete modules/user/user.module Implements hook_image_style_delete().
user_image_style_save modules/user/user.module Implements hook_image_style_save(). 1
user_install modules/user/user.install Implements hook_install().
user_is_anonymous modules/user/user.module Determines if the current user is anonymous. 6 2
user_is_blocked modules/user/user.module Checks for usernames blocked by user administration. 1
user_is_logged_in modules/user/user.module Determines if the current user is logged in. 2 2
user_load modules/user/user.module Loads a user object. 58
user_load_by_mail modules/user/user.module Fetch a user object by email address. 2
user_load_by_name modules/user/user.module Fetch a user object by account name. 17
user_load_multiple modules/user/user.module Load multiple users based on certain conditions. 17
user_login modules/user/user.module Form builder; the main user login form. 5
user_login_authenticate_validate modules/user/user.module A 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. 1
user_login_block modules/user/user.module 1
user_login_default_validators modules/user/user.module Set 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… 2
user_login_destination modules/user/user.module Helper function to rewrite the destination to avoid redirecting to login page after login. 1
user_login_finalize modules/user/user.module Finalize the login process. Must be called when logging in a user. 3
user_login_final_validate modules/user/user.module The final validation handler on the login form. 1
user_login_name_validate modules/user/user.module A FAPI validate handler. Sets an error if supplied username has been blocked. 1 1
user_login_submit 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. 3 1
user_logout modules/user/user.pages.inc Menu callback; logs the current user out, and redirects to the home page. 1 4
user_logout_current_user modules/user/user.pages.inc Logs the current user out. 2
user_mail modules/user/user.module Implements hook_mail(). 2
user_mail_tokens modules/user/user.module Token callback to add unsafe tokens for user mails. 1
user_menu modules/user/user.module Implements hook_menu().
user_menu_link_alter modules/user/user.module Implements hook_menu_link_alter().
user_menu_site_status_alter modules/user/user.module Implements hook_menu_site_status_alter().
user_menu_title modules/user/user.module Menu item title callback for the 'user' path. 1
user_modules_installed modules/user/user.module Implements hook_modules_installed().
user_modules_uninstalled modules/user/user.module Implements hook_modules_uninstalled().
user_module_invoke modules/user/user.module Invokes a user hook in every module. 2
user_multiple_cancel_confirm modules/user/user.module 1
user_multiple_cancel_confirm_submit modules/user/user.module Submit handler for mass-account cancellation form.
user_multiple_role_edit modules/user/user.module Callback function for admin mass adding/deleting a user role. 1
user_needs_new_hash includes/password.inc Check whether a user's hashed password needs to be replaced with a new hash. 2
user_node_load modules/user/user.module Implements hook_node_load().
user_page modules/user/user.pages.inc Page callback: Displays the user page. 1
user_page_title modules/user/user.module Menu item title callback - use the user name. 1
user_pass modules/user/user.pages.inc Form builder; Request a password reset. 1
user_password modules/user/user.module Generate a random alphanumeric password. 12
user_pass_rehash modules/user/user.module Creates a unique hash value for use in time-dependent per-user URLs. 13
user_pass_reset modules/user/user.pages.inc Menu callback; process one time login link and redirects to the user page on success. 1
user_pass_reset_url modules/user/user.module Generates a unique URL for a user to login and reset their password. 4
user_pass_submit modules/user/user.pages.inc Form submission handler for user_pass().
user_pass_validate modules/user/user.pages.inc Form validation handler for user_pass().
user_permission modules/user/user.module Implements hook_permission().
user_permission_get_modules modules/user/user.module Determine the modules that permissions belong to. 1
user_preferred_language modules/user/user.module Get 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… 5
user_profile_form modules/user/user.pages.inc Form builder; edit a user account or one of their profile categories. 3

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.