W3cubDocs

/Drupal 8

function hook_updater_info_alter

hook_updater_info_alter(&$updaters)

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

drupal_get_updaters()

hook_updater_info()

Related topics

Hooks
Define functions that alter the behavior of Drupal core.
Update API
Updating minor versions of modules

File

core/lib/Drupal/Core/Extension/module.api.php, line 867
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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!module.api.php/function/hook_updater_info_alter/8.1.x