function hook_updater_info_alter in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Extension/module.api.php \hook_updater_info_alter()
- 7 modules/system/system.api.php \hook_updater_info_alter()
- 9 core/lib/Drupal/Core/Extension/module.api.php \hook_updater_info_alter()
Alter the Updater information array.
An Updater is a class that knows how to update various parts of the Drupal file system, for example to update modules that have newer releases, or to install a new theme.
Parameters
array $updaters: Associative array of updaters as defined through hook_updater_info(). Alter this array directly.
See also
Related topics
1 invocation of hook_updater_info_alter()
- drupal_get_updaters in core/
includes/ common.inc - Assembles the Drupal Updater registry.
File
- core/
lib/ Drupal/ Core/ Extension/ module.api.php, line 917 - Hooks related to module and update systems.
Code
function hook_updater_info_alter(&$updaters) {
// Adjust weight so that the theme Updater gets a chance to handle a given
// update task before module updaters.
$updaters['theme']['weight'] = -1;
}