Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
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 core/modules/user/user.module Finalizes the login process and logs in a user. 6
user_logout core/modules/user/user.module Logs the current user out. 6
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. 1
user_picture_enabled core/modules/user/user.module Returns whether this site supports the default user picture feature. 2
user_removed_post_updates core/modules/user/user.post_update.php Implements hook_removed_post_updates().
user_role_change_permissions core/modules/user/user.module Change permissions for a user role. 21
user_role_grant_permissions core/modules/user/user.module Grant permissions to a user role. 34
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_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 core/modules/views/views.module Invalidate the views cache, forcing a rebuild on the next grab of table data. 4
views_post_update_counter_field_not_sortable core/modules/views/views.post_update.php Clear cache to apply non-sortable counter field change.
views_removed_post_updates core/modules/views/views.post_update.php Implements hook_removed_post_updates().
views_set_current_view

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

core/modules/views/views.module Set the current view.
views_test_checkboxes_theme_form_views_exposed_form_alter core/modules/views/tests/themes/views_test_checkboxes_theme/views_test_checkboxes_theme.theme Changes an exposed "type" filter from a multi-select to checkboxes.
views_test_config_updater_post_update_set_deprecations_disabled core/modules/views/tests/modules/views_test_config_updater/views_test_config_updater.post_update.php Test post update to set deprecations disabled.
views_test_data_handler_test_access_callback core/modules/views/tests/modules/views_test_data/views_test_data.module Access callback for the generic handler test. 1
views_test_data_handler_test_access_callback_argument core/modules/views/tests/modules/views_test_data/views_test_data.module Access callback with an argument for the generic handler test. 1
views_test_data_install core/modules/views/tests/modules/views_test_data/views_test_data.install Implements hook_install().
views_test_data_schema core/modules/views/tests/modules/views_test_data/views_test_data.install Implements hook_schema(). 3
views_ui_add_ajax_trigger

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the protected method \Drupal\views\ViewsFormAjaxHelperTrait::addAjaxTrigger().

core/modules/views_ui/admin.inc Converts a form element in the add view wizard to be AJAX-enabled.
views_ui_add_ajax_wrapper

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \Drupal\views\ViewsFormAjaxHelperTrait trait and call the addAjaxWrapper() method.

core/modules/views_ui/admin.inc Adds a wrapper to a form region (for AJAX refreshes) after the build.
views_ui_add_limited_validation

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \Drupal\views\ViewsFormAjaxHelperTrait trait and call the addLimitedValidation() method.

core/modules/views_ui/admin.inc Limits validation errors for a non-JavaScript fallback submit button.
views_ui_ajax_update_form

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \Drupal\views\ViewsFormAjaxHelperTrait trait and call the ajaxUpdateForm() method.

core/modules/views_ui/admin.inc Updates a part of the add view form via AJAX.
views_ui_build_form_url

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the \Drupal\views\ViewsFormHelperTrait trait and call the buildFormUrl() method.

core/modules/views_ui/admin.inc Creates the menu path for a standard AJAX form given the form state.
views_ui_contextual_links_suppress

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

core/modules/views_ui/views_ui.module Sets a static variable for controlling whether contextual links are rendered.
views_ui_contextual_links_suppress_pop

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

core/modules/views_ui/views_ui.module Decrements the views_ui_contextual_links_suppress() static variable.
views_ui_contextual_links_suppress_push

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

core/modules/views_ui/views_ui.module Increments the views_ui_contextual_links_suppress() static variable.
views_ui_form_button_was_clicked

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the \Drupal\views\ViewsFormHelperTrait trait and call the formButtonWasClicked() method.

core/modules/views_ui/admin.inc The #process callback for a button.
views_ui_nojs_submit

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \Drupal\views\ViewsFormAjaxHelperTrait trait and call the noJsSubmit() method.

core/modules/views_ui/admin.inc Non-JavaScript fallback for updating the add view form.
views_ui_standard_display_dropdown

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the \Drupal\views\ViewsFormHelperTrait trait and call the standardDisplayDropdown() method.

core/modules/views_ui/admin.inc Adds an element to select either the default display or the current display.
views_ui_test_theme_views_ui_display_tab_alter core/modules/views_ui/tests/themes/views_ui_test_theme/views_ui_test_theme.theme Implements hook_views_ui_display_tab_alter().
views_ui_test_theme_views_ui_display_top_alter core/modules/views_ui/tests/themes/views_ui_test_theme/views_ui_test_theme.theme Implements hook_views_ui_display_top_alter().
views_ui_view_preview_section_display_category_links

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

core/modules/views_ui/views_ui.module Returns a link to editing a certain display setting.
views_ui_view_preview_section_handler_links

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

core/modules/views_ui/views_ui.module Returns contextual links for each handler of a certain section. 1

Other projects


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