function drupal_get_updaters

Same name in other branches
  1. 9 core/includes/common.inc \drupal_get_updaters()
  2. 8.9.x core/includes/common.inc \drupal_get_updaters()
  3. 10 core/includes/common.inc \drupal_get_updaters()
  4. 11.x core/includes/common.inc \drupal_get_updaters()

Assembles the Drupal Updater registry.

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.

Return value

The Drupal Updater class registry.

See also

hook_updater_info()

hook_updater_info_alter()

3 calls to drupal_get_updaters()
Updater::getUpdaterFromDirectory in includes/updater.inc
Determine which Updater class can operate on the given directory.
update_manager_install_form_submit in modules/update/update.manager.inc
Form submission handler for update_manager_install_form().
update_manager_update_ready_form_submit in modules/update/update.manager.inc
Form submission handler for update_manager_update_ready_form().

File

includes/common.inc, line 8609

Code

function drupal_get_updaters() {
    $updaters =& drupal_static(__FUNCTION__);
    if (!isset($updaters)) {
        $updaters = module_invoke_all('updater_info');
        drupal_alter('updater_info', $updaters);
        uasort($updaters, 'drupal_sort_weight');
    }
    return $updaters;
}

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