update_requirements

update_requirements($phase) Implements hook_requirements(). Return value An array describing the status of the site regarding available updates. If there is no update data, only one record will be returned, indicating that the status of core can't be determined. If data is available, there will be two records: one for core, and another for all of contrib (assuming there are any contributed modules or themes enabled on the site). In addition to the fields expected by hook_requirements ('value',

update_resolve_dependencies

update_resolve_dependencies($starting_updates) Resolves dependencies in a set of module updates, and orders them correctly. This function receives a list of requested module updates and determines an appropriate order to run them in such that all update dependencies are met. Any updates whose dependencies cannot be met are included in the returned array but have the key 'allowed' set to FALSE; the calling function should take responsibility for ensuring that these updates are ultimately not per

update_retrieve_dependencies

update_retrieve_dependencies() Invokes hook_update_dependencies() in all installed modules. This function is similar to \Drupal::moduleHandler()->invokeAll(), with the main difference that it does not require that a module be enabled to invoke its hook, only that it be installed. This allows the update system to properly perform updates even on modules that are currently disabled. Return value An array of return values obtained by merging the results of the hook_update_dependencies() implem

UPDATE_REVOKED

Current release has been unpublished and is no longer available. File core/modules/update/update.module, line 29 Handles updates of Drupal core and contributed projects. Code const UPDATE_REVOKED = 2;

update_set_schema

update_set_schema($module, $schema_version) Forces a module to a given schema version. This function is rarely necessary. Parameters string $module: Name of the module. string $schema_version: The schema version the module should be set to. File core/includes/update.inc, line 113 Drupal database update API. Code function update_set_schema($module, $schema_version) { \Drupal::keyValue('system.schema')->set($module, $schema_version); // system_list_reset() is in module.inc but that woul

update_storage_clear

update_storage_clear() Invalidates stored data relating to update status. File core/modules/update/update.module, line 641 Handles updates of Drupal core and contributed projects. Code function update_storage_clear() { \Drupal::keyValueExpirable('update')->deleteAll(); \Drupal::keyValueExpirable('update_available_release')->deleteAll(); }

update_storage_clear_submit

update_storage_clear_submit($form, FormStateInterface $form_state) Form submission handler for system_modules(). See also update_form_system_modules_alter() File core/modules/update/update.module, line 278 Handles updates of Drupal core and contributed projects. Code function update_storage_clear_submit($form, FormStateInterface $form_state) { // Clear all update module data. update_storage_clear(); }

update_system_schema_requirements

update_system_schema_requirements() Returns whether the minimum schema requirement has been satisfied. Return value array A requirements info array. File core/includes/update.inc, line 70 Drupal database update API. Code function update_system_schema_requirements() { $requirements = array(); $system_schema = drupal_get_installed_schema_version('system'); $requirements['minimum schema']['title'] = 'Minimum schema version'; if ($system_schema >= \Drupal::CORE_MINIMUM_SCHEMA_VERSIO

update_theme

update_theme() Implements hook_theme(). File core/modules/update/update.module, line 187 Handles updates of Drupal core and contributed projects. Code function update_theme() { return array( 'update_last_check' => array( 'variables' => array('last' => 0), ), 'update_report' => array( 'variables' => array('data' => NULL), 'file' => 'update.report.inc', ), 'update_project_status' => array( 'variables' => array('project' =&

update_themes_installed

update_themes_installed($themes) Implements hook_themes_installed(). If themes are installed, we invalidate the information of available updates. File core/modules/update/update.module, line 246 Handles updates of Drupal core and contributed projects. Code function update_themes_installed($themes) { // Clear all update module data. update_storage_clear(); }