function drupal_load_updates in Drupal 8
Same name and namespace in other branches
- 5 includes/install.inc \drupal_load_updates()
- 6 includes/install.inc \drupal_load_updates()
- 7 includes/install.inc \drupal_load_updates()
- 9 core/includes/install.inc \drupal_load_updates()
Loads .install files for installed modules to initialize the update system.
2 calls to drupal_load_updates()
- DbUpdateController::handle in core/
modules/ system/ src/ Controller/ DbUpdateController.php - Returns a database update page.
- SystemManager::listRequirements in core/
modules/ system/ src/ SystemManager.php - Displays the site status report. Can also be used as a pure check.
File
- core/
includes/ install.inc, line 82 - API functions for installing modules and themes.
Code
function drupal_load_updates() {
/** @var \Drupal\Core\Extension\ModuleExtensionList $extension_list_module */
$extension_list_module = \Drupal::service('extension.list.module');
foreach (drupal_get_installed_schema_version(NULL, FALSE, TRUE) as $module => $schema_version) {
if ($extension_list_module
->exists($module) && !$extension_list_module
->checkIncompatibility($module)) {
if ($schema_version > -1) {
module_load_install($module);
}
}
}
}