196 functions implement hook_update_N()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

big_pipe_post_update_html5_placeholders in core/modules/big_pipe/big_pipe.post_update.php
Clear the render cache.
block_content_post_update_block_library_view_permission in core/modules/block_content/block_content.post_update.php
Update block_content 'block library' view permission.
block_content_post_update_entity_changed_constraint in core/modules/block_content/block_content.post_update.php
Clear the entity type cache.
block_content_post_update_move_custom_block_library in core/modules/block_content/block_content.post_update.php
Moves the custom block library to Content.
block_content_post_update_revision_type in core/modules/block_content/block_content.post_update.php
Update configuration for revision type.
block_content_post_update_sort_permissions in core/modules/block_content/block_content.post_update.php
Update permissions for users with "administer blocks" permission.
block_content_update_10100 in core/modules/block_content/block_content.install
Update entity definition to handle revision routes.
block_content_update_10200 in core/modules/block_content/block_content.install
Remove the unique values constraint from block content info fields.
block_content_update_10300 in core/modules/block_content/block_content.install
Apply index to reusable column.
block_content_update_last_removed in core/modules/block_content/block_content.install
Implements hook_update_last_removed().
block_update_last_removed in core/modules/block/block.install
Implements hook_update_last_removed().
ckeditor5_post_update_code_block in core/modules/ckeditor5/ckeditor5.post_update.php
Updates Text Editors using CKEditor 5 Code Block.
ckeditor5_post_update_image_toolbar_item in core/modules/ckeditor5/ckeditor5.post_update.php
The image toolbar item changed from `uploadImage` to `drupalInsertImage`.
ckeditor5_post_update_list_multiblock in core/modules/ckeditor5/ckeditor5.post_update.php
Updates Text Editors using CKEditor 5.
ckeditor5_post_update_list_start_reversed in core/modules/ckeditor5/ckeditor5.post_update.php
Updates Text Editors using CKEditor 5 to native List "start" functionality.
ckeditor5_post_update_plugins_settings_export_order in core/modules/ckeditor5/ckeditor5.post_update.php
Updates Text Editors using CKEditor 5 to sort plugin settings by plugin key.
comment_node_update_index in core/modules/comment/comment.module
Implements hook_node_update_index().
comment_update_10100 in core/modules/comment/comment.install
Remove the year 2038 date limitation.
comment_update_last_removed in core/modules/comment/comment.install
Implements hook_update_last_removed().
contact_post_update_set_empty_default_form_to_null in core/modules/contact/contact.post_update.php
Converts empty `default_form` in settings to NULL.
content_moderation_update_last_removed in core/modules/content_moderation/content_moderation.install
Implements hook_update_last_removed().
content_translation_update_last_removed in core/modules/content_translation/content_translation.install
Implements hook_update_last_removed().
datetime_range_post_update_from_to_configuration in core/modules/datetime_range/datetime_range.post_update.php
Adds 'from_to' in flagged entity view date range formatter.
dblog_update_10100 in core/modules/dblog/dblog.install
Remove the year 2038 date limitation.
dblog_update_10101 in core/modules/dblog/dblog.install
Converts the 'wid' of the 'watchdog' table to a big integer.
dblog_update_last_removed in core/modules/dblog/dblog.install
Implements hook_update_last_removed().
editor_post_update_image_lazy_load in core/modules/editor/editor.post_update.php
Enable filter_image_lazy_load if editor_file_reference is enabled.
editor_post_update_sanitize_image_upload_settings in core/modules/editor/editor.post_update.php
Clean up image upload settings.
editor_update_last_removed in core/modules/editor/editor.install
Implements hook_update_last_removed().
entity_test_update_8001 in core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8001.inc
Makes the 'user_id' field multiple and migrate its data.
entity_test_update_8001 in core/modules/system/tests/modules/entity_test/update/status_report_8001.inc
Test update.
entity_test_update_8002 in core/modules/system/tests/modules/entity_test/update/status_report_8002.inc
Test update.
entity_test_update_8002 in core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8002.inc
Makes the 'user_id' field single and migrate its data.
entity_test_update_entity_base_field_info in core/modules/system/tests/modules/entity_test_update/entity_test_update.module
Implements hook_entity_base_field_info().
entity_test_update_entity_field_storage_info in core/modules/system/tests/modules/entity_test_update/entity_test_update.module
Implements hook_entity_field_storage_info().
entity_test_update_entity_type_alter in core/modules/system/tests/modules/entity_test_update/entity_test_update.module
Implements hook_entity_type_alter().
entity_test_update_view_presave in core/modules/system/tests/modules/entity_test_update/entity_test_update.module
Implements hook_ENTITY_TYPE_presave() for the 'view' entity type.
field_test_field_storage_config_update_forbid in core/modules/field/tests/modules/field_test/field_test.field.inc
Implements hook_field_storage_config_update_forbid().
field_update_last_removed in core/modules/field/field.install
Implements hook_update_last_removed().
file_post_update_add_default_filename_sanitization_configuration in core/modules/file/file.post_update.php
Add default filename sanitization configuration.
file_post_update_add_permissions_to_roles in core/modules/file/file.post_update.php
Grant all non-anonymous roles the 'delete own files' permission.
file_update_last_removed in core/modules/file/file.install
Implements hook_update_last_removed().
filter_post_update_consolidate_filter_config in core/modules/filter/filter.post_update.php
Change filter_settings to type mapping.
filter_post_update_sort_filters in core/modules/filter/filter.post_update.php
Sorts filter format filter configuration.
forum_post_update_recreate_forum_index_rows in core/modules/forum/forum.post_update.php
Repopulate the forum index table.
forum_update_10100 in core/modules/forum/forum.install
Remove the year 2038 date limitation.
forum_update_10101 in core/modules/forum/forum.install
Repopulate the forum index table.
forum_update_10102 in core/modules/forum/forum.install
Add a primary key to forum_index.
help_post_update_add_permissions_to_roles in core/modules/help/help.post_update.php
Grant all admin roles the 'access help pages' permission.
help_post_update_help_topics_search in core/modules/help/help.post_update.php
Install or update config for help topics if the search module installed.
help_post_update_help_topics_uninstall in core/modules/help/help.post_update.php
Uninstall the help_topics module if installed.
help_update_10200 in core/modules/help/help.install
Install search index table for help topics.
history_update_10100 in core/modules/history/history.install
Remove the year 2038 date limitation.
history_update_last_removed in core/modules/history/history.install
Implements hook_update_last_removed().
image_update_last_removed in core/modules/image/image.install
Implements hook_update_last_removed().
jsonapi_update_last_removed in core/modules/jsonapi/jsonapi.install
Implements hook_update_last_removed().
language_update_last_removed in core/modules/language/language.install
Implements hook_update_last_removed().
layout_builder_post_update_enable_expose_field_block_feature_flag in core/modules/layout_builder/layout_builder.post_update.php
Enable the expose all fields feature flag module.
layout_builder_post_update_timestamp_formatter in core/modules/layout_builder/layout_builder.post_update.php
Update timestamp formatter settings for Layout Builder fields.
layout_builder_update_last_removed in core/modules/layout_builder/layout_builder.install
Implements hook_update_last_removed().
locale_config_batch_update_components in core/modules/locale/locale.bulk.inc
Builds a locale batch to refresh configuration.
locale_translation_batch_update_build in core/modules/locale/locale.fetch.inc
Builds a batch to check, download and import project translations.
locale_translation_update_file_history in core/modules/locale/locale.module
Updates the {locale_file} table.
locale_update_10100 in core/modules/locale/locale.install
Remove the year 2038 date limitation.
locale_update_10300 in core/modules/locale/locale.install
Add an index on locales_location on type and name.
locale_update_last_removed in core/modules/locale/locale.install
Implements hook_update_last_removed().
media_library_update_last_removed in core/modules/media_library/media_library.install
Implements hook_update_last_removed().
media_post_update_oembed_loading_attribute in core/modules/media/media.post_update.php
Add the oEmbed loading attribute setting to field formatter instances.
media_post_update_remove_mappings_targeting_source_field in core/modules/media/media.post_update.php
Make sure no Media types are using the source field in the meta mappings.
media_post_update_set_blank_iframe_domain_to_null in core/modules/media/media.post_update.php
Updates media.settings:iframe_domain config if it's still at the default.
media_update_last_removed in core/modules/media/media.install
Implements hook_update_last_removed().
menu_link_content_update_last_removed in core/modules/menu_link_content/menu_link_content.install
Implements hook_update_last_removed().
migrate_drupal_update_last_removed in core/modules/migrate_drupal/migrate_drupal.install
Implements hook_update_last_removed().
migrate_update_10100 in core/modules/migrate/migrate.install
Remove the year 2038 date limitation.
migrate_update_last_removed in core/modules/migrate/migrate.install
Implements hook_update_last_removed().
module_test_post_update_test in core/modules/system/tests/modules/module_test/module_test.post_update.php
Test post update function.
navigation_post_update_update_permissions in core/modules/navigation/navigation.post_update.php
Grants navigation specific permission to roles with access to any layout.
new_dependency_test_update_8001 in core/modules/system/tests/modules/new_dependency_test/new_dependency_test.install
Enable the new_dependency_test_with_service module.
node_post_update_set_node_type_description_and_help_to_null in core/modules/node/node.post_update.php
Converts empty `description` and `help` in content types to NULL.
node_type_update_nodes in core/modules/node/node.module
Updates all nodes of one type to be of another type.
node_update_last_removed in core/modules/node/node.install
Implements hook_update_last_removed().
olivero_post_update_add_olivero_primary_color in core/themes/olivero/olivero.post_update.php
Sets the default `base_primary_color` value of Olivero's theme settings.
options_field_storage_config_update_forbid in core/modules/options/options.module
Implements hook_field_storage_config_update_forbid().
path_alias_post_update_drop_path_alias_status_index in core/modules/path_alias/path_alias.post_update.php
Remove the path_alias__status index.
path_update_last_removed in core/modules/path/path.install
Implements hook_update_last_removed().
pgsql_update_10101 in core/modules/pgsql/pgsql.install
Update sequences' owner created from serial columns in PostgreSQL.
post_update_test_failing_post_update_exception in core/modules/system/tests/modules/post_update_test_failing/post_update_test_failing.post_update.php
Post update that throws an exception.
responsive_image_post_update_image_loading_attribute in core/modules/responsive_image/responsive_image.post_update.php
Add the image loading settings to responsive image field formatter instances.
responsive_image_post_update_order_multiplier_numerically in core/modules/responsive_image/responsive_image.post_update.php
Re-order mappings by breakpoint ID and descending numeric multiplier order.
rest_update_last_removed in core/modules/rest/rest.install
Implements hook_update_last_removed().
serialization_update_last_removed in core/modules/serialization/serialization.install
Implements hook_update_last_removed().
statistics_update_10100 in core/modules/statistics/statistics.install
Remove the year 2038 date limitation.
statistics_update_last_removed in core/modules/statistics/statistics.install
Implements hook_update_last_removed().
syslog_update_last_removed in core/modules/syslog/syslog.install
Implements hook_update_last_removed().
system_post_update_add_description_to_entity_form_mode in core/modules/system/system.post_update.php
Update description for form modes.
system_post_update_add_description_to_entity_view_mode in core/modules/system/system.post_update.php
Update description for view modes.
system_post_update_add_langcode_to_all_translatable_config in core/modules/system/system.post_update.php
Adds a langcode to all simple config which needs it.
system_post_update_amend_config_sync_readme_url in core/modules/system/system.post_update.php
Fix path in README.txt in CONFIG_SYNC_DIRECTORY.
system_post_update_convert_empty_country_and_timezone_settings_to_null in core/modules/system/system.post_update.php
Updates system.date config to NULL for empty country and timezone defaults.
system_post_update_enable_password_compatibility in core/modules/system/system.post_update.php
Enable the password compatibility module.
system_post_update_linkset_settings in core/modules/system/system.post_update.php
Add new menu linkset endpoint setting.
system_post_update_mailer_dsn_settings in core/modules/system/system.post_update.php
Add new default mail transport dsn.
system_post_update_mailer_structured_dsn_settings in core/modules/system/system.post_update.php
Add new default mail transport dsn.
system_post_update_mail_notification_setting in core/modules/system/system.post_update.php
Adds default value for the mail_notification config parameter.
system_post_update_move_development_settings_to_keyvalue in core/modules/system/system.post_update.php
Move development settings from state to raw key-value storage.
system_post_update_remove_asset_entries in core/modules/system/system.post_update.php
Remove redundant asset state and config.
system_post_update_remove_asset_query_string in core/modules/system/system.post_update.php
Remove redundant asset query string state.
system_post_update_set_blank_log_url_to_null in core/modules/system/system.post_update.php
Updates system.theme.global:logo.url config if it's still at the default.
system_post_update_set_cron_logging_setting_to_boolean in core/modules/system/system.post_update.php
Fix system.cron:logging values to boolean.
system_post_update_timestamp_formatter in core/modules/system/system.post_update.php
Update timestamp formatter settings for entity view displays.
system_update_10100 in core/modules/system/system.install
Remove the year 2038 date limitation.
system_update_10101 in core/modules/system/system.install
Change the {batch} table [bid] field to serial.
system_update_10201 in core/modules/system/system.install
Clear left over entries in the revision data table.
system_update_last_removed in core/modules/system/system.install
Implements hook_update_last_removed().
taxonomy_post_update_set_new_revision in core/modules/taxonomy/taxonomy.post_update.php
Re-save Taxonomy configurations with new_revision config.
taxonomy_post_update_set_vocabulary_description_to_null in core/modules/taxonomy/taxonomy.post_update.php
Converts empty `description` in vocabularies to NULL.
taxonomy_update_10100 in core/modules/taxonomy/taxonomy.install
Update entity definition to handle revision routes.
taxonomy_update_last_removed in core/modules/taxonomy/taxonomy.install
Implements hook_update_last_removed().
template_preprocess_locale_translation_update_info in core/modules/locale/locale.pages.inc
Prepares variables for translation status information templates.
template_preprocess_update_fetch_error_message in core/modules/update/update.report.inc
Prepares variables for update fetch error message templates.
template_preprocess_update_last_check in core/modules/update/update.module
Prepares variables for last time update data was checked templates.
template_preprocess_update_project_status in core/modules/update/update.report.inc
Prepares variables for update project status templates.
template_preprocess_update_report in core/modules/update/update.report.inc
Prepares variables for project status report templates.
template_preprocess_update_version in core/modules/update/update.report.inc
Prepares variables for update version templates.
test_theme_updates_post_update_test in core/modules/system/tests/themes/test_theme_updates/test_theme_updates.post_update.php
Tests post updates for themes.
text_post_update_allowed_formats in core/modules/text/text.post_update.php
Add allowed_formats setting to existing text fields.
tracker_update_10100 in core/modules/tracker/tracker.install
Remove the year 2038 date limitation.
under_test_update_1 in core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
Simulates a hook_update_N function.
under_test_update_1234_failed in core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
Simulates a hook_update_N function.
under_test_update_20 in core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
Simulates a hook_update_N function.
under_test_update_3000 in core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
Simulates a hook_update_N function.
update_authorize_update_batch_finished in core/modules/update/update.authorize.inc
Batch callback: Performs actions when the authorized update batch is done.
update_calculate_project_update_status in core/modules/update/update.compare.inc
Calculates the current update status of a specific project.
update_clear_update_disk_cache in core/modules/update/update.module
Clears the temporary files and directories based on file age from disk.
update_get_update_function_list in core/includes/update.inc
Returns an organized list of update functions for a set of modules.
update_get_update_list in core/includes/update.inc
Returns a list of all the pending database updates.
update_post_update_set_blank_fetch_url_to_null in core/modules/update/update.post_update.php
Updates update.settings:fetch.url config if it's still at the default.
update_script_test_update_7200 in core/modules/system/tests/modules/update_script_test/update_script_test.install
Dummy update_script_test update 7200.
update_script_test_update_7201 in core/modules/system/tests/modules/update_script_test/update_script_test.install
Dummy update_script_test update 7201.
update_script_test_update_8001 in core/modules/system/tests/modules/update_script_test/update_script_test.install
Dummy update function to run during the tests.
update_script_test_update_last_removed in core/modules/system/tests/modules/update_script_test/update_script_test.install
Implements hook_update_last_removed().
update_test_0_update_8001 in core/modules/system/tests/modules/update_test_0/update_test_0.install
Dummy update_test_0 update 8001.
update_test_0_update_8002 in core/modules/system/tests/modules/update_test_0/update_test_0.install
Dummy update_test_0 update 8002.
update_test_0_update_8003 in core/modules/system/tests/modules/update_test_0/update_test_0.install
Dummy update_test_0 update 8003.
update_test_1_update_8001 in core/modules/system/tests/modules/update_test_1/update_test_1.install
Dummy update_test_1 update 8001.
update_test_1_update_8002 in core/modules/system/tests/modules/update_test_1/update_test_1.install
Dummy update_test_1 update 8002.
update_test_1_update_8003 in core/modules/system/tests/modules/update_test_1/update_test_1.install
Dummy update_test_1 update 8003.
update_test_1_update_dependencies in core/modules/system/tests/modules/update_test_1/update_test_1.install
Implements hook_update_dependencies().
update_test_2_update_8001 in core/modules/system/tests/modules/update_test_2/update_test_2.install
Dummy update_test_2 update 8001.
update_test_2_update_8002 in core/modules/system/tests/modules/update_test_2/update_test_2.install
Dummy update_test_2 update 8002.
update_test_2_update_8003 in core/modules/system/tests/modules/update_test_2/update_test_2.install
Dummy update_test_2 update 8003.
update_test_2_update_dependencies in core/modules/system/tests/modules/update_test_2/update_test_2.install
Implements hook_update_dependencies().
update_test_3_update_8001 in core/modules/system/tests/modules/update_test_3/update_test_3.install
Dummy update_test_3 update 8001.
update_test_3_update_dependencies in core/modules/system/tests/modules/update_test_3/update_test_3.install
Implements hook_update_dependencies().
update_test_description_update_8001 in core/modules/system/tests/modules/update_test_description/update_test_description.install
Update test of slash in description and/or.
update_test_description_update_8002 in core/modules/system/tests/modules/update_test_description/update_test_description.install
update_test_failing_post_update_first in core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php
First update, should not be run since this module's update hooks fail.
update_test_failing_update_8001 in core/modules/system/tests/modules/update_test_failing/update_test_failing.install
This update will fail.
update_test_failing_update_8002 in core/modules/system/tests/modules/update_test_failing/update_test_failing.install
A further update.
update_test_invalid_hook_update_8000 in core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.install
Hook implementation using the reserved schema version 8000.
update_test_last_removed_update_8003 in core/modules/system/tests/modules/update_test_last_removed/update_test_last_removed.install
Dummy update function to run during the tests.
update_test_last_removed_update_last_removed in 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 in core/modules/system/tests/modules/update_test_no_preexisting/update_test_no_preexisting.install
Dummy update_test_no_preexisting update 8001.
update_test_postupdate_post_update_first in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
First update.
update_test_postupdate_post_update_second in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
Second update.
update_test_postupdate_post_update_test0 in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
Test0 update.
update_test_postupdate_post_update_test1 in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
Test1 update.
update_test_postupdate_post_update_test_batch in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
Testing batch processing in post updates update.
update_test_postupdate_update_8001 in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.install
Normal update_N() function.
update_test_semver_update_n_update_8001 in core/modules/system/tests/modules/update_test_semver_update_n/update_test_semver_update_n.install
Update 8001.
update_test_update_status_alter in core/modules/update/tests/modules/update_test/update_test.module
Implements hook_update_status_alter().
update_test_with_7x_update_7200 in 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 in 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 in core/modules/system/tests/modules/update_test_with_7x/update_test_with_7x.install
Implements hook_update_last_removed().
update_update_last_removed in core/modules/update/update.install
Implements hook_update_last_removed().
update_verify_update_archive in core/modules/update/update.module
Implements hook_verify_update_archive().
user_post_update_sort_permissions in core/modules/user/user.post_update.php
No-op update.
user_post_update_sort_permissions_again in core/modules/user/user.post_update.php
Ensure permissions stored in role configuration are sorted using the schema.
user_update_10000 in core/modules/user/user.install
Remove non-existent permissions created by migrations.
user_update_last_removed in core/modules/user/user.install
Implements hook_update_last_removed().
views_post_update_add_missing_labels in core/modules/views/views.post_update.php
Add labels to views which don't have one.
views_post_update_boolean_custom_titles in core/modules/views/views.post_update.php
Update Views config schema to make boolean custom titles translatable.
views_post_update_fix_revision_id_part in core/modules/views/views.post_update.php
Fix '-revision_id' replacement token syntax.
views_post_update_oembed_eager_load in core/modules/views/views.post_update.php
Add eager load option to all oembed type field configurations.
views_post_update_pager_heading in core/modules/views/views.post_update.php
Adds a default pager heading.
views_post_update_remove_default_argument_skip_url in core/modules/views/views.post_update.php
Remove default_argument_skip_url setting.
views_post_update_remove_skip_cache_setting in core/modules/views/views.post_update.php
Remove the skip_cache settings.
views_post_update_rendered_entity_field_cache_metadata in core/modules/views/views.post_update.php
Removes entity display cache metadata from views with rendered entity fields.
views_post_update_responsive_image_lazy_load in core/modules/views/views.post_update.php
Add lazy load options to all responsive image type field configurations.
views_post_update_taxonomy_filter_user_context in core/modules/views/views.post_update.php
Removes User context from views with taxonomy filters.
views_post_update_timestamp_formatter in core/modules/views/views.post_update.php
Update timestamp formatter settings for views.
views_post_update_views_data_argument_plugin_id in core/modules/views/views.post_update.php
Post update configured views for entity reference argument plugin IDs.
views_ui_ajax_update_form in core/modules/views_ui/admin.inc
Updates a part of the add view form via AJAX.
views_update_last_removed in core/modules/views/views.install
Implements hook_update_last_removed().
workspaces_update_last_removed in core/modules/workspaces/workspaces.install
Implements hook_update_last_removed().
workspace_update_test_post_update_check_active_workspace in core/modules/workspaces/tests/modules/workspace_update_test/workspace_update_test.post_update.php
Checks the active workspace during database updates.

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