Functions - 9.5.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
user_filter_format_disable core/modules/user/user.module Implements hook_filter_format_disable().
user_form_process_password_confirm core/modules/user/user.module Form element process handler for client-side password validation. 1
user_form_system_regional_settings_alter core/modules/user/user.module Implements hook_form_FORM_ID_alter() for \Drupal\system\Form\RegionalForm.
user_form_system_regional_settings_submit core/modules/user/user.module Additional submit handler for \Drupal\system\Form\RegionalForm. 1
user_form_test_form_user_cancel_form_alter core/modules/user/tests/modules/user_form_test/user_form_test.module Implements hook_form_FORM_ID_alter() for user_cancel_form().
user_help core/modules/user/user.module Implements hook_help().
user_hooks_test_user_format_name_alter core/modules/user/tests/modules/user_hooks_test/user_hooks_test.module Implements hook_user_format_name_alter(). 8
user_install core/modules/user/user.install Implements hook_install(). 3
user_is_blocked core/modules/user/user.module Checks for usernames blocked by user administration. 2
user_js_settings_alter core/modules/user/user.module Implements hook_js_settings_alter().
user_load_by_mail core/modules/user/user.module Fetches a user object by email address. 1
user_load_by_name core/modules/user/user.module Fetches a user object by account name. 9
user_login_finalize core/modules/user/user.module Finalizes the login process and logs in a user. 5
user_logout core/modules/user/user.module Logs the current user out. 5
user_mail core/modules/user/user.module Implements hook_mail(). 3
user_mail_tokens core/modules/user/user.module Token callback to add unsafe tokens for user mails. 2
user_modules_uninstalled core/modules/user/user.module Implements hook_modules_uninstalled().
user_password

in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Password\PasswordGeneratorInterface::generate() instead.

core/modules/user/user.module Generate a random alphanumeric password. 1
user_pass_rehash core/modules/user/user.module Creates a unique hash value for use in time-dependent per-user URLs. 12
user_pass_reset_url core/modules/user/user.module Generates a unique URL for a user to log in and reset their password. 6
user_picture_enabled core/modules/user/user.module Returns whether this site supports the default user picture feature. 2
user_post_update_sort_permissions core/modules/user/user.post_update.php No-op update.
user_post_update_sort_permissions_again core/modules/user/user.post_update.php Ensure permissions stored in role configuration are sorted using the schema.
user_post_update_update_roles core/modules/user/user.post_update.php Calculate role dependencies and remove non-existent permissions.
user_preprocess_block core/modules/user/user.module Implements hook_preprocess_HOOK() for block templates.
user_removed_post_updates core/modules/user/user.post_update.php Implements hook_removed_post_updates().
user_roles core/modules/user/user.module Retrieve an array of roles matching specified conditions. 7 6
user_role_change_permissions core/modules/user/user.module Change permissions for a user role. 23
user_role_grant_permissions core/modules/user/user.module Grant permissions to a user role. 36
user_role_names core/modules/user/user.module Retrieves the names of roles matching specified conditions. 17
user_role_permissions core/modules/user/user.module Determine the permissions for one or more roles. 1 1
user_role_revoke_permissions core/modules/user/user.module Revoke permissions from a user role. 11
user_schema core/modules/user/user.install Implements hook_schema().
user_template_preprocess_default_variables_alter core/modules/user/user.module Implements hook_template_preprocess_default_variables_alter().
user_theme core/modules/user/user.module Implements hook_theme().
user_tokens core/modules/user/user.tokens.inc Implements hook_tokens().
user_token_info core/modules/user/user.tokens.inc Implements hook_token_info().
user_toolbar core/modules/user/user.module Implements hook_toolbar().
user_update_9301 core/modules/user/user.install Change the users table to use an serial uid field.
user_update_last_removed core/modules/user/user.install Implements hook_update_last_removed().
user_user_login core/modules/user/user.module Implements hook_user_login().
user_user_logout core/modules/user/user.module Implements hook_user_logout().
user_user_presave core/modules/user/user.module Implements hook_ENTITY_TYPE_presave() for user entities.
user_user_role_delete core/modules/user/user.module Implements hook_ENTITY_TYPE_delete() for user_role entities.
user_user_role_insert core/modules/user/user.module Implements hook_ENTITY_TYPE_insert() for user_role entities.
user_user_view core/modules/user/user.module Implements hook_ENTITY_TYPE_view() for user entities.
user_user_view_alter core/modules/user/user.module Implements hook_ENTITY_TYPE_view_alter() for user entities.
user_validate_name core/modules/user/user.module Verify the syntax of the given name. 2
user_views_plugins_argument_validator_alter core/modules/user/user.views.inc Implements hook_views_plugins_argument_validator_alter().
user_views_query_substitutions core/modules/user/user.views_execution.inc Implements hook_views_query_substitutions().

Other projects


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