W3cubDocs

/Drupal 8

function drupal_load_updates

drupal_load_updates()

Loads .install files for installed modules to initialize the update system.

File

core/includes/install.inc, line 79
API functions for installing modules and themes.

Code

function drupal_load_updates() {
  foreach (drupal_get_installed_schema_version(NULL, FALSE, TRUE) as $module => $schema_version) {
    if ($schema_version > -1) {
      module_load_install($module);
    }
  }
}

© 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!includes!install.inc/function/drupal_load_updates/8.1.x