Functions - 9.5.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
update_calculate_project_data core/modules/update/update.compare.inc Calculates the current update status of all projects on the site. 3
update_calculate_project_update_status core/modules/update/update.compare.inc Calculates the current update status of a specific project. 1
update_check_incompatibility

in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided.

core/includes/update.inc Tests the compatibility of a module or theme. 1
update_check_requirements core/includes/update.inc Checks update requirements and reports errors and (optionally) warnings. 1
update_clear_update_disk_cache core/modules/update/update.module Clears the temporary files and directories based on file age from disk. 2
update_create_fetch_task core/modules/update/update.module Adds a task to the queue for fetching release history data for a project. 1
update_cron core/modules/update/update.module Implements hook_cron().
update_delete_file_if_stale core/modules/update/update.module Deletes stale files and directories from the update manager disk cache. 2 1
update_do_one core/includes/update.inc Implements callback_batch_operation(). 1
update_fetch_data core/modules/update/update.module Attempts to fetch update data after loading the necessary include file. 2
update_fetch_data_finished core/modules/update/update.module Batch callback: Performs actions when all fetch tasks have been completed. 1
update_get_available core/modules/update/update.module Tries to get update information and refreshes it when necessary. 6
update_get_update_function_list core/includes/update.inc Returns an organized list of update functions for a set of modules. 1
update_get_update_list core/includes/update.inc Returns a list of all the pending database updates. 5
update_help core/modules/update/update.module Implements hook_help().
update_install core/modules/update/update.install Implements hook_install().
update_invoke_post_update core/includes/update.inc Executes a single hook_post_update_NAME(). 1
update_is_missing core/includes/update.inc Determines if a module update is missing or unavailable. 1
update_mail core/modules/update/update.module Implements hook_mail().
update_manager_archive_extract core/modules/update/update.manager.inc Unpacks a downloaded archive file. 2
update_manager_archive_verify core/modules/update/update.manager.inc Verifies an archive after it has been downloaded and extracted. 1
update_manager_batch_project_get core/modules/update/update.manager.inc Implements callback_batch_operation(). 1
update_manager_download_batch_finished core/modules/update/update.manager.inc Batch callback: Performs actions when the download batch is completed. 1
update_manager_file_get core/modules/update/update.manager.inc Copies a file from the specified URL to the temporary directory for updates. 2
update_manager_local_transfers_allowed core/modules/update/update.manager.inc Determines if file transfers will be performed locally. 1
update_modules_installed core/modules/update/update.module Implements hook_modules_installed().
update_modules_uninstalled core/modules/update/update.module Implements hook_modules_uninstalled().
update_page_top core/modules/update/update.module Implements hook_page_top().
update_post_update_add_view_update_notifications_permission core/modules/update/update.post_update.php Add 'view update notifications' to roles with 'administer site configuration'.
update_process_project_info core/modules/update/update.compare.inc Determines version and type information for currently installed projects. 1
update_refresh core/modules/update/update.module Refreshes the release data after loading the necessary include file. 1
update_requirements core/modules/update/update.install Implements hook_requirements(). 2
update_resolve_dependencies core/includes/update.inc Resolves dependencies in a set of module updates, and orders them correctly. 5
update_retrieve_dependencies core/includes/update.inc Invokes hook_update_dependencies() in all installed modules. 2
update_script_test_cache_flush core/modules/system/tests/modules/update_script_test/update_script_test.module Implements hook_cache_flush().
update_script_test_requirements core/modules/system/tests/modules/update_script_test/update_script_test.install Implements hook_requirements().
update_script_test_system_info_alter core/modules/system/tests/modules/update_script_test/update_script_test.module Implements hook_system_info_alter().
update_script_test_update_7200 core/modules/system/tests/modules/update_script_test/update_script_test.install Dummy update_script_test update 7200.
update_script_test_update_7201 core/modules/system/tests/modules/update_script_test/update_script_test.install Dummy update_script_test update 7201.
update_script_test_update_8001 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 core/modules/system/tests/modules/update_script_test/update_script_test.install Implements hook_update_last_removed().
update_set_schema

in drupal:9.2.0 and is removed from drupal:10.0.0. No direct replacement is provided.

core/includes/update.inc Forces a module to a given schema version. 1
update_storage_clear core/modules/update/update.module Invalidates stored data relating to update status. 6
update_system_schema_requirements core/includes/update.inc Returns whether the minimum schema requirement has been satisfied. 1
update_test_0_update_8001 core/modules/system/tests/modules/update_test_0/update_test_0.install Dummy update_test_0 update 8001.
update_test_0_update_8002 core/modules/system/tests/modules/update_test_0/update_test_0.install Dummy update_test_0 update 8002.
update_test_0_update_8003 core/modules/system/tests/modules/update_test_0/update_test_0.install Dummy update_test_0 update 8003.
update_test_1_update_8001 core/modules/system/tests/modules/update_test_1/update_test_1.install Dummy update_test_1 update 8001. 1
update_test_1_update_8002 core/modules/system/tests/modules/update_test_1/update_test_1.install Dummy update_test_1 update 8002. 1
update_test_1_update_8003 core/modules/system/tests/modules/update_test_1/update_test_1.install Dummy update_test_1 update 8003. 1

Other projects


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