259 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.

aggregator_update_7000 in modules/aggregator/aggregator.install
Add hash column to aggregator_feed table.
aggregator_update_7001 in modules/aggregator/aggregator.install
Add aggregator teaser length to settings from old global default teaser length
aggregator_update_7002 in modules/aggregator/aggregator.install
Add queued timestamp.
aggregator_update_7003 in modules/aggregator/aggregator.install
Increase the length of {aggregator_feed}.url.
aggregator_update_7004 in modules/aggregator/aggregator.install
Add index on timestamp.
ajax_command_update_build_id in includes/ajax.inc
Creates a Drupal Ajax 'update_build_id' command.
block_update_7000 in modules/block/block.install
Set system.weight to a low value for block module.
block_update_7002 in modules/block/block.install
Rename {blocks} table to {block}, {blocks_roles} to {block_role} and {boxes} to {block_custom}.
block_update_7003 in modules/block/block.install
Change the weight column to normal int.
block_update_7004 in modules/block/block.install
Add new blocks to new regions, migrate custom variables to blocks.
block_update_7005 in modules/block/block.install
Update the {block_custom}.format column.
block_update_7006 in modules/block/block.install
Recreates cache_block table.
block_update_7007 in modules/block/block.install
Change {block_custom}.format into varchar.
block_update_7008 in modules/block/block.install
Update database to match Drupal 7 schema.
block_update_7009 in modules/block/block.install
Increase {block}.title length to 255 characters.
block_update_dependencies in modules/block/block.install
Implements hook_update_dependencies().
book_update_bid in modules/book/book.module
Updates the book ID of a page and its children when it moves to a new book.
color_update_7001 in modules/color/color.install
Warn site administrator if unsafe CSS color codes are found in the database.
comment_node_update_index in modules/comment/comment.module
Implements hook_node_update_index().
comment_update_7000 in modules/comment/comment.install
Rename comment display setting variables.
comment_update_7001 in modules/comment/comment.install
Change comment status from published being 0 to being 1
comment_update_7002 in modules/comment/comment.install
Rename {comments} table to {comment} and upgrade it.
comment_update_7003 in modules/comment/comment.install
Split {comment}.timestamp into 'created' and 'changed', improve indexing on {comment}.
comment_update_7004 in modules/comment/comment.install
Upgrade the {node_comment_statistics} table.
comment_update_7005 in modules/comment/comment.install
Create the comment_body field.
comment_update_7006 in modules/comment/comment.install
Migrate data from the comment field to field storage.
comment_update_7007 in modules/comment/comment.install
Add an index to the created column.
comment_update_7008 in modules/comment/comment.install
Update database to match Drupal 7 schema.
comment_update_7009 in modules/comment/comment.install
Change the last_comment_timestamp column description.
comment_update_dependencies in modules/comment/comment.install
Implements hook_update_dependencies().
comment_update_index in modules/comment/comment.module
Implements hook_update_index().
contact_update_7000 in modules/contact/contact.install
Rename the threshold limit variable.
contact_update_7001 in modules/contact/contact.install
Rename the administer contact forms permission.
contact_update_7002 in modules/contact/contact.install
Enable the 'access user contact forms' for registered users by default.
contact_update_7003 in modules/contact/contact.install
Change the weight column to normal int.
contact_update_dependencies in modules/contact/contact.install
Implements hook_update_dependencies().
dblog_update_7001 in modules/dblog/dblog.install
Update the {watchdog} table.
dblog_update_7002 in modules/dblog/dblog.install
Add an index to the severity column in the watchdog database table.
dblog_update_7003 in modules/dblog/dblog.install
Account for possible legacy systems where dblog was not installed.
field_sql_storage_field_storage_update_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_update_field().
field_sql_storage_field_update_forbid in modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_update_forbid().
field_sql_storage_update_7000 in modules/field/modules/field_sql_storage/field_sql_storage.install
Field SQL storage update version placeholder.
field_sql_storage_update_7001 in modules/field/modules/field_sql_storage/field_sql_storage.install
Remove the field_config_entity_type table and store 'entity_type' strings.
field_sql_storage_update_7002 in modules/field/modules/field_sql_storage/field_sql_storage.install
Fix primary keys in field revision data tables.
field_test_field_update_forbid in modules/field/tests/field_test.field.inc
Implements hook_field_update_forbid().
field_update_7000 in modules/field/field.install
Field update version placeholder.
field_update_7001 in modules/field/field.install
Fix fields definitions created during the d6 to d7 upgrade path.
field_update_7002 in modules/field/field.install
Split the all-inclusive field_bundle_settings variable per bundle.
field_update_7003 in modules/field/field.install
Add the FieldInfo class to the class registry.
field_update_7004 in modules/field/field.install
Grant the new "administer fields" permission to trusted users.
field_update_field in modules/field/field.crud.inc
Updates a field.
field_update_instance in modules/field/field.crud.inc
Updates an instance of a field.
filter_update_7000 in modules/filter/filter.install
Upgrade the {filter_formats} table and rename it to {filter_format}.
filter_update_7001 in modules/filter/filter.install
Break out "escape HTML filter" option to its own filter.
filter_update_7003 in modules/filter/filter.install
Upgrade the {filter} table for core filters.
filter_update_7005 in modules/filter/filter.install
Integrate text formats with the user permissions system.
filter_update_7008 in modules/filter/filter.install
Grant usage of all text formats to user roles having the 'administer filters' permission.
filter_update_7009 in modules/filter/filter.install
Converts fields that store serialized variables from text to blob.
filter_update_7010 in modules/filter/filter.install
Change {filter_format}.format and {filter}.format into varchar.
filter_update_dependencies in modules/filter/filter.install
Implements hook_update_dependencies().
forum_update_7000 in modules/forum/forum.install
Add new index to forum table.
forum_update_7001 in modules/forum/forum.install
Create new {forum_index} table.
forum_update_7002 in modules/forum/forum.install
Add new index to forum_index table.
forum_update_7003 in modules/forum/forum.install
Rename field to 'taxonomy_forums'.
forum_update_7011 in modules/forum/forum.install
Update {forum_index} so that only published nodes are indexed.
forum_update_7012 in modules/forum/forum.install
Add 'created' and 'last_comment_timestamp' indexes.
forum_update_dependencies in modules/forum/forum.install
Implements hook_update_dependencies().
image_field_update_field in modules/image/image.module
Implements hook_field_update_field().
image_field_update_instance in modules/image/image.module
Implements hook_field_update_instance().
image_update_7000 in modules/image/image.install
Install the schema for users upgrading from the contributed module.
image_update_7001 in modules/image/image.install
Rename possibly misnamed {image_effect} table to {image_effects}.
image_update_7002 in modules/image/image.install
Add width and height columns to image field schema and populate.
image_update_7003 in modules/image/image.install
Remove the variables that set alt and title length since they were not used for database column size and could cause PDO exceptions.
image_update_7004 in modules/image/image.install
Use a large setting (512 and 1024 characters) for the length of the image alt and title fields.
image_update_7005 in modules/image/image.install
Add a column to the 'image_style' table to store administrative labels.
image_update_dependencies in modules/image/image.install
Implements hook_update_dependencies().
list_field_update_field in modules/field/modules/list/list.module
Implements hook_field_update_field().
list_field_update_forbid in modules/field/modules/list/list.module
Implements hook_field_update_forbid().
list_update_7001 in modules/field/modules/list/list.install
Rename the list field types and change 'allowed_values' format.
list_update_7002 in modules/field/modules/list/list.install
Re-apply list_update_7001() for deleted fields.
locale_update_7000 in modules/locale/locale.install
Add context field index and allow longer location.
locale_update_7001 in modules/locale/locale.install
Upgrade language negotiation settings.
locale_update_7002 in modules/locale/locale.install
Updates URL language negotiation by adding the URL fallback detection method.
locale_update_7003 in modules/locale/locale.install
Update "language_count" variable.
locale_update_7004 in modules/locale/locale.install
Remove duplicates in {locales_source}.
locale_update_7005 in modules/locale/locale.install
Increase {locales_languages}.formula column's length.
menu_update_7000 in modules/menu/menu.install
Migrate the "Default menu for content" setting to individual node types.
menu_update_7001 in modules/menu/menu.install
Rename "Primary Links" and "Secondary Links" to their Drupal 7 equivalents.
menu_update_7002 in modules/menu/menu.install
Rename the primary/secondary menu blocks to match previously renamed menus.
menu_update_7003 in modules/menu/menu.install
Add missing custom menus to active menus list.
node_type_update_nodes in modules/node/node.module
Updates all nodes of one type to be of another type.
node_update_7000 in modules/node/node.install
Upgrade the node type table and fix node type 'module' attribute to avoid name-space conflicts.
node_update_7001 in modules/node/node.install
Rename {node_revisions} table to {node_revision}.
node_update_7002 in modules/node/node.install
Extend the node_promote_status index to include all fields required for the node page query.
node_update_7003 in modules/node/node.install
Remove the node_counter if the statistics module is uninstalled.
node_update_7004 in modules/node/node.install
Extend the existing default preview and teaser settings to all node types.
node_update_7005 in modules/node/node.install
Add status/comment/promote and sticky columns to the {node_revision} table.
node_update_7006 in modules/node/node.install
Convert body and teaser from node properties to fields, and migrate status/comment/promote and sticky columns to the {node_revision} table.
node_update_7007 in modules/node/node.install
Remove column min_word_count.
node_update_7008 in modules/node/node.install
Split the 'administer nodes' permission from 'access content overview'.
node_update_7009 in modules/node/node.install
Convert node languages from the empty string to LANGUAGE_NONE.
node_update_7010 in modules/node/node.install
Add the {block_node_type} table.
node_update_7011 in modules/node/node.install
Update the database from Drupal 6 to match the schema.
node_update_7012 in modules/node/node.install
Switches body fields to untranslatable while upgrading from D6 and makes them language neutral.
node_update_7013 in modules/node/node.install
Change {node}.vid default value from 0 to NULL to avoid deadlock issues on MySQL.
node_update_7014 in modules/node/node.install
Add an index on {node}.language.
node_update_7015 in modules/node/node.install
Enable node types that may have been erroneously disabled in Drupal 7.36.
node_update_7016 in modules/node/node.install
Change {history}.nid to an unsigned int in order to match {node}.nid.
node_update_dependencies in modules/node/node.install
Implements hook_update_dependencies().
node_update_index in modules/node/node.module
Implements hook_update_index().
openid_update_6000 in modules/openid/openid.install
Add a table to store nonces.
openid_update_7000 in modules/openid/openid.install
Bind associations to their providers.
poll_update_7001 in modules/poll/poll.install
Use the poll_choice primary key to record votes in poll_votes rather than the choice order. Rename chorder to weight.
poll_update_7002 in modules/poll/poll.install
Add timestamp field to {poll_vote}.
poll_update_7003 in modules/poll/poll.install
Change the weight column to normal int.
poll_update_7004 in modules/poll/poll.install
Update the database to match the schema.
profile_update_7001 in modules/profile/profile.install
Rename {profile_fields} table to {profile_field} and {profile_values} to {profile_value}.
profile_update_7002 in modules/profile/profile.install
Change the weight column to normal int.
search_node_update_index in modules/search/search.module
Implements hook_node_update_index().
search_update_7000 in modules/search/search.install
Replace unique keys in 'search_dataset' and 'search_index' by primary keys.
search_update_totals in modules/search/search.module
Updates the {search_total} database table.
statistics_update_7000 in modules/statistics/statistics.install
Update the {accesslog}.sid column to match the length of {sessions}.sid
statistics_update_index in modules/statistics/statistics.module
Implements hook_update_index().
system_update_7000 in modules/system/system.install
Rename blog and forum permissions to be consistent with other content types.
system_update_7001 in modules/system/system.install
Generate a cron key and save it in the variables table.
system_update_7002 in modules/system/system.install
Add a table to store blocked IP addresses.
system_update_7003 in modules/system/system.install
Update {blocked_ips} with valid IP addresses from {access}.
system_update_7004 in modules/system/system.install
Remove hardcoded numeric deltas from all blocks in core.
system_update_7005 in modules/system/system.install
Remove throttle columns and variables.
system_update_7007 in modules/system/system.install
Convert to new method of storing permissions.
system_update_7009 in modules/system/system.install
Rename the variable for primary links.
system_update_7011 in modules/system/system.install
Split the 'bypass node access' permission from 'administer nodes'.
system_update_7013 in modules/system/system.install
Convert default time zone offset to default time zone name.
system_update_7015 in modules/system/system.install
Change the user logout path.
system_update_7016 in modules/system/system.install
Remove custom datatype *_unsigned in PostgreSQL.
system_update_7017 in modules/system/system.install
Change the theme setting 'toggle_node_info' into a per content type variable.
system_update_7018 in modules/system/system.install
Shorten the {system}.type column and modify indexes.
system_update_7020 in modules/system/system.install
Enable field and field_ui modules.
system_update_7021 in modules/system/system.install
Change the PHP for settings permission.
system_update_7027 in modules/system/system.install
Enable field type modules.
system_update_7029 in modules/system/system.install
Add new 'view own unpublished content' permission for authenticated users. Preserves legacy behavior from Drupal 6.x.
system_update_7032 in modules/system/system.install
Alter field hostname to identifier in the {flood} table.
system_update_7033 in modules/system/system.install
Move CACHE_AGGRESSIVE to CACHE_NORMAL.
system_update_7034 in modules/system/system.install
Migrate the file path settings and create the new {file_managed} table.
system_update_7036 in modules/system/system.install
Split the 'access site in maintenance mode' permission from 'administer site configuration'.
system_update_7042 in modules/system/system.install
Upgrade the {url_alias} table and create a cache bin for path aliases.
system_update_7044 in modules/system/system.install
Drop the actions_aid table.
system_update_7045 in modules/system/system.install
Add expiration field to the {flood} table.
system_update_7046 in modules/system/system.install
Switch from the Minnelli theme if it is the default or admin theme.
system_update_7047 in modules/system/system.install
Normalize the front page path variable.
system_update_7048 in modules/system/system.install
Convert path languages from the empty string to LANGUAGE_NONE.
system_update_7049 in modules/system/system.install
Rename 'Default' profile to 'Standard.'
system_update_7050 in modules/system/system.install
Change {batch}.id column from serial to regular int.
system_update_7051 in modules/system/system.install
make the IP field IPv6 compatible
system_update_7052 in modules/system/system.install
Rename file to include_file in {menu_router} table.
system_update_7053 in modules/system/system.install
Upgrade standard blocks and menus.
system_update_7054 in modules/system/system.install
Remove {cache_*}.headers columns.
system_update_7055 in modules/system/system.install
Converts fields that store serialized variables from text to blob.
system_update_7057 in modules/system/system.install
Increase the size of session-ids.
system_update_7058 in modules/system/system.install
Remove cron semaphore variable.
system_update_7059 in modules/system/system.install
Create the {file_usage} table.
system_update_7060 in modules/system/system.install
Create fields in preparation for migrating upload.module to file.module.
system_update_7061 in modules/system/system.install
Migrate upload.module data to the newly created file field.
system_update_7062 in modules/system/system.install
Replace 'system_list' index with 'bootstrap' index on {system}.
system_update_7063 in modules/system/system.install
Delete {menu_links} records for 'type' => MENU_CALLBACK which would not appear in a fresh install.
system_update_7064 in modules/system/system.install
Remove block_callback field from {menu_router}.
system_update_7065 in modules/system/system.install
Remove the default value for sid.
system_update_7066 in modules/system/system.install
Migrate the 'file_directory_temp' variable.
system_update_7067 in modules/system/system.install
Grant administrators permission to view the administration theme.
system_update_7068 in modules/system/system.install
Update {url_alias}.language description.
system_update_7069 in modules/system/system.install
Remove the obsolete 'site_offline' variable.
system_update_7070 in modules/system/system.install
Remove the obsolete 'drupal_badge_color' and 'drupal_badge_size' variables.
system_update_7071 in modules/system/system.install
Add index missed during upgrade, and fix field default.
system_update_7072 in modules/system/system.install
Remove the obsolete 'site_offline_message' variable.
system_update_7073 in modules/system/system.install
Add binary to {file_managed}, in case system_update_7034() was run without it.
system_update_7074 in modules/system/system.install
This update has been removed and will not run.
system_update_7076 in modules/system/system.install
Convert menu_links query strings into arrays.
system_update_7077 in modules/system/system.install
Revert {file_managed}.filename changed to a binary column.
system_update_7078 in modules/system/system.install
Add binary to {date_formats}.format.
system_update_7079 in modules/system/system.install
Convert the 'filesize' column in {file_managed} to a bigint.
system_update_7080 in modules/system/system.install
Convert the 'format' column in {date_format_locale} to case sensitive varchar.
system_update_7081 in modules/system/system.install
Remove the Drupal 6 default install profile if it is still in the database.
system_update_7082 in modules/system/system.install
Add 'jquery-extend-3.4.0.js' to the 'jquery' library.
system_update_7083 in modules/system/system.install
Add 'jquery-html-prefilter-3.5.0-backport.js' to the 'jquery' library.
system_update_7084 in modules/system/system.install
Rebuild JavaScript aggregates to include 'ajax.js' fix for Chrome 83.
system_update_7085 in modules/system/system.install
Remove FLoC-blocking variable.
system_update_7086 in modules/system/system.install
Prepare the schema and data of the sessions table for hashed session ids.
system_update_dependencies in modules/system/system.install
Implements hook_update_dependencies().
system_update_files_database in modules/system/system.module
Updates the records in the system table based on the files array.
system_update_last_removed in modules/system/system.install
taxonomy_update_7001 in modules/taxonomy/taxonomy.install
Rename taxonomy tables.
taxonomy_update_7002 in modules/taxonomy/taxonomy.install
Add {vocabulary}.machine_name column.
taxonomy_update_7003 in modules/taxonomy/taxonomy.install
Remove the related terms setting from vocabularies.
taxonomy_update_7004 in modules/taxonomy/taxonomy.install
Move taxonomy vocabulary associations for nodes to fields and field instances.
taxonomy_update_7005 in modules/taxonomy/taxonomy.install
Migrate {taxonomy_term_node} table to field storage.
taxonomy_update_7006 in modules/taxonomy/taxonomy.install
Add {taxonomy_term_data}.format column.
taxonomy_update_7007 in modules/taxonomy/taxonomy.install
Add index on {taxonomy_term_data}.name column to speed up taxonomy_get_term_by_name().
taxonomy_update_7008 in modules/taxonomy/taxonomy.install
Change the weight columns to normal int.
taxonomy_update_7009 in modules/taxonomy/taxonomy.install
Change {taxonomy_term_data}.format into varchar.
taxonomy_update_7010 in modules/taxonomy/taxonomy.install
Change {taxonomy_index}.created to support signed int.
taxonomy_update_7011 in modules/taxonomy/taxonomy.install
Drop unpublished nodes from the index.
taxonomy_update_dependencies in modules/taxonomy/taxonomy.install
Implements hook_update_dependencies().
text_update_7000 in modules/field/modules/text/text.install
Change text field 'format' columns into varchar.
theme_update_last_check in modules/update/update.module
Returns HTML for the last time we checked for update data.
theme_update_manager_update_form in modules/update/update.manager.inc
Returns HTML for the first page in the process of updating projects.
theme_update_page in includes/theme.maintenance.inc
Returns HTML for the update page.
theme_update_report in modules/update/update.report.inc
Returns HTML for the project status report.
theme_update_status_label in modules/update/update.report.inc
Returns HTML for a label to display for a project's update status.
theme_update_version in modules/update/update.report.inc
Returns HTML for the version display of a project.
tracker_update_7000 in modules/tracker/tracker.install
Create new tracker_node and tracker_user tables.
trigger_update_7000 in modules/trigger/trigger.install
Alter the "hook" field and drop the "op field" of {trigger_assignments}.
trigger_update_7001 in modules/trigger/trigger.install
Increase the length of the "hook" field to 78 characters.
trigger_update_7002 in modules/trigger/trigger.install
Renames nodeapi to node.
update_authorize_update_batch_finished in modules/update/update.authorize.inc
Implements callback_batch_finished().
update_calculate_project_update_status in modules/update/update.compare.inc
Calculates the current update status of a specific project.
update_clear_update_disk_cache in modules/update/update.module
Clears the temporary files and directories based on file age from disk.
update_get_update_function_list in includes/update.inc
Returns an organized list of update functions for a set of modules.
update_get_update_list in includes/update.inc
Returns a list of all the pending database updates.
update_manager_update_form in modules/update/update.manager.inc
Form constructor for the update form of the Update Manager module.
update_manager_update_form_submit in modules/update/update.manager.inc
Form submission handler for update_manager_update_form().
update_manager_update_form_validate in modules/update/update.manager.inc
Form validation handler for update_manager_update_form().
update_manager_update_ready_form in modules/update/update.manager.inc
Form constructor for the update ready form.
update_manager_update_ready_form_submit in modules/update/update.manager.inc
Form submission handler for update_manager_update_ready_form().
update_script_test_update_7000 in modules/simpletest/tests/update_script_test.install
Dummy update function to run during the tests.
update_test_1_update_7000 in modules/simpletest/tests/update_test_1.install
Dummy update_test_1 update 7000.
update_test_1_update_7001 in modules/simpletest/tests/update_test_1.install
Dummy update_test_1 update 7001.
update_test_1_update_7002 in modules/simpletest/tests/update_test_1.install
Dummy update_test_1 update 7002.
update_test_1_update_dependencies in modules/simpletest/tests/update_test_1.install
Implements hook_update_dependencies().
update_test_2_update_7000 in modules/simpletest/tests/update_test_2.install
Dummy update_test_2 update 7000.
update_test_2_update_7001 in modules/simpletest/tests/update_test_2.install
Dummy update_test_2 update 7001.
update_test_2_update_7002 in modules/simpletest/tests/update_test_2.install
Dummy update_test_2 update 7002.
update_test_2_update_dependencies in modules/simpletest/tests/update_test_2.install
Implements hook_update_dependencies().
update_test_3_update_7000 in modules/simpletest/tests/update_test_3.install
Dummy update_test_3 update 7000.
update_test_3_update_dependencies in modules/simpletest/tests/update_test_3.install
Implements hook_update_dependencies().
update_test_update_status_alter in modules/update/tests/update_test.module
Implements hook_update_status_alter().
update_update_7000 in modules/update/update.install
Create a queue to store tasks for requests to fetch available update data.
update_update_7001 in modules/update/update.install
Recreates cache_update table.
update_verify_update_archive in modules/update/update.module
Implements hook_verify_update_archive().
user_update_7000 in modules/user/user.install
Increase the length of the password field to accommodate better hashes.
user_update_7001 in modules/user/user.install
Remove the 'threshold', 'mode' and 'sort' columns from the {users} table.
user_update_7002 in modules/user/user.install
Convert user time zones from time zone offsets to time zone names.
user_update_7003 in modules/user/user.install
Update user settings for cancelling user accounts.
user_update_7005 in modules/user/user.install
Changes the users table to allow longer e-mail addresses.
user_update_7006 in modules/user/user.install
Add module data to {role_permission}.
user_update_7007 in modules/user/user.install
Add a weight column to user roles.
user_update_7008 in modules/user/user.install
If 'user_register' variable was unset in Drupal 6, set it to be the same as the Drupal 6 default setting.
user_update_7009 in modules/user/user.install
Converts fields that store serialized variables from text to blob.
user_update_7010 in modules/user/user.install
Update the {user}.signature_format column.
user_update_7011 in modules/user/user.install
Placeholder function.
user_update_7012 in modules/user/user.install
Add the user's pictures to the {file_managed} table and make them managed files.
user_update_7013 in modules/user/user.install
Add user module file usage entries.
user_update_7014 in modules/user/user.install
Rename the 'post comments without approval' permission.
user_update_7015 in modules/user/user.install
Change {users}.signature_format into varchar.
user_update_7016 in modules/user/user.install
Update the database to match the schema.
user_update_7017 in modules/user/user.install
Update email templates to use new tokens.
user_update_7018 in modules/user/user.install
Ensure there is an index on {users}.picture.
user_update_7019 in modules/user/user.install
Ensure there is a combined index on {authmap}.uid and {authmap}.module.
user_update_7020 in modules/user/user.install
Add changed field to users table.
user_update_dependencies in modules/user/user.install
Implements hook_update_dependencies().

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