1 system.api.php hook_updater_info_alter(&$updaters)

Alter the Updater information array.

An Updater is a class that knows how to update various parts of the Backdrop 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

backdrop_get_updaters()

hook_updater_info()

Related topics

File

core/modules/system/system.api.php, line 3939
Hooks provided by Backdrop core and the System module.

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;
}