Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
update_test_last_removed_update_last_removed core/modules/system/tests/modules/update_test_last_removed/update_test_last_removed.install Implements hook_update_last_removed().
update_test_no_preexisting_update_8001 core/modules/system/tests/modules/update_test_no_preexisting/update_test_no_preexisting.install Dummy update_test_no_preexisting update 8001. 1
update_test_postupdate_post_update_first core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php First update. 2
update_test_postupdate_post_update_second core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php Second update. 2
update_test_postupdate_post_update_test0 core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php Test0 update. 2
update_test_postupdate_post_update_test1 core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php Test1 update. 2
update_test_postupdate_post_update_test_batch core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php Testing batch processing in post updates update. 1
update_test_postupdate_removed_post_updates core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php Implements hook_removed_post_updates().
update_test_postupdate_update_8001 core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.install Normal update_N() function.
update_test_schema_schema core/modules/system/tests/modules/update_test_schema/update_test_schema.install Implements hook_schema().
update_test_semver_update_n_update_8001 core/modules/system/tests/modules/update_test_semver_update_n/update_test_semver_update_n.install Update 8001. 1
update_test_with_7x_update_7200 core/modules/system/tests/modules/update_test_with_7x/update_test_with_7x.install Dummy update_test_with_7x update 7200.
update_test_with_7x_update_7201 core/modules/system/tests/modules/update_test_with_7x/update_test_with_7x.install Dummy update_test_with_7x update 7201.
update_test_with_7x_update_last_removed core/modules/system/tests/modules/update_test_with_7x/update_test_with_7x.install Implements hook_update_last_removed().
update_uninstall core/modules/update/update.install Implements hook_uninstall().
update_update_last_removed core/modules/update/update.install Implements hook_update_last_removed().
user_cancel

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal::service(AccountCancellation::class)->cancel() instead.

core/modules/user/user.module Cancel a user account.
user_cancel_methods

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\AccountCancellation::cancelMethods() instead.

core/modules/user/user.module Helper function to return available account cancellation methods.
user_cancel_url

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\user\OneTimeAuthentication::generateCancelConfirmUrl() instead.

core/modules/user/user.module Generates a URL to confirm an account cancellation request.
user_cookie_delete

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/user/user.module Delete a visitor information cookie.
user_cookie_save

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/user/user.module Saves visitor information as a cookie so it can be reused.
user_form_process_password_confirm

in drupal:11.4.0 and is removed from drupal:13.0.0. Use UserThemeHooks::processPasswordConfirm() instead.

core/modules/user/user.module Form element process handler for client-side password validation.
user_install core/modules/user/user.install Implements hook_install(). 4
user_load_by_mail

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::entityTypeManager()->getStorage('user')->loadByProperties() instead.

core/modules/user/user.module Fetches a user object by email address.
user_load_by_name

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::entityTypeManager()->getStorage('user')->loadByProperties() instead.

core/modules/user/user.module Fetches a user object by account name. 1
user_login_finalize

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\LoginFinalizer::finalizeLogin() instead.

core/modules/user/user.module Finalizes the login process and logs in a user. 1
user_logout

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\LogoutFinalizer::finalizeLogout() instead.

core/modules/user/user.module Logs the current user out. 1
user_mail_tokens

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\user\OneTimeAuthentication::tokens() instead.

core/modules/user/user.module Token callback to add unsafe tokens for user mails.
user_pass_rehash

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\user\OneTimeAuthentication::generateHmac() instead.

core/modules/user/user.module Creates a unique hash value for use in time-dependent per-user URLs. 1
user_pass_reset_url

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\user\OneTimeAuthentication::generateOneTimeLoginUrl() instead.

core/modules/user/user.module Generates a unique URL for a user to log in and reset their password.
user_picture_enabled

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement, check the definition directly.

core/modules/user/user.module Returns whether this site supports the default user picture feature.
user_post_update_add_created_to_display core/modules/user/user.post_update.php Add hidden 'created' field to user entity view displays.
user_removed_post_updates core/modules/user/user.post_update.php Implements hook_removed_post_updates().
user_role_change_permissions

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\RoleInterface::changePermissions() instead.

core/modules/user/user.module Change permissions for a user role.
user_role_grant_permissions

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\RoleInterface::grantPermissions() instead.

core/modules/user/user.module Grant permissions to a user role. 5
user_role_revoke_permissions

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\RoleInterface::revokePermissions() instead.

core/modules/user/user.module Revoke permissions from a user role. 3
user_schema core/modules/user/user.install Implements hook_schema().
user_update_last_removed core/modules/user/user.install Implements hook_update_last_removed().
views_add_contextual_links

in drupal:11.4.0 and is removed from drupal:13.0.0. Use Drupal\views\ContextualLinksHelper::addLinks() instead.

core/modules/views/views.module Adds contextual links associated with a view display to a renderable array.
views_disable_view

in drupal:11.4.0 and is removed from drupal:13.0.0. Use $view->disable()->save() instead.

core/modules/views/views.module Disables and saves a view.
views_element_validate_tags

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/views/views.module Validation callback for query tags.
views_embed_view

in drupal:11.4.0 and is removed from drupal:13.0.0. Use '#type' => 'view' render elements instead.

core/modules/views/views.module Embed a view using a PHP snippet. 1
views_enable_view

in drupal:11.4.0 and is removed from drupal:13.0.0. Use $view->enable()->save() instead.

core/modules/views/views.module Enables and saves a view.
views_get_current_view

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/views/views.module Find out what, if any, current view is currently in use.
views_get_view_result

in drupal:11.4.0 and is removed from drupal:13.0.0. Use Views::getViewResult($name, $display_id, ...$args) instead.

core/modules/views/views.module Get the result of a view.
views_install core/modules/views/views.install Implements hook_install().
views_invalidate_cache

in drupal:11.5.0 and is removed from drupal:13.0.0. Instead, use \Drupal\views\Views::invalidateCache() for cache invalidation, and call the router.builder and views.route_subscriber services directly to require route rebuilding.

core/modules/views/views.module Invalidate the views cache, forcing a rebuild on the next grab of table data.
views_post_update_counter_field_not_sortable core/modules/views/views.post_update.php Clear cache to apply non-sortable counter field change.
views_post_update_filter_min_max_labels core/modules/views/views.post_update.php Add default min_label and max_label to exposed numeric-type filters.
views_removed_post_updates core/modules/views/views.post_update.php Implements hook_removed_post_updates().

Other projects


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