1. drupal
    1. 8
    2. 7
7 – 8 _system_update_bootstrap_status()

Refresh bootstrap column in the system table.

This is called internally by module_enable/disable() to flag modules that implement hooks used during bootstrap, such as hook_boot(). These modules are loaded earlier to invoke the hooks.

▾ 3 functions call _system_update_bootstrap_status()

drupal_flush_all_caches in includes/common.inc
Flush all cached data on the site.
module_disable in includes/module.inc
Disable a given set of modules.
module_enable in includes/module.inc
Enables or installs a given list of modules.


modules/system/system.module, line 2439

function _system_update_bootstrap_status() {
  $bootstrap_modules = array();
  foreach (bootstrap_hooks() as $hook) {
    foreach (module_implements($hook) as $module) {
      $bootstrap_modules[] = $module;
  $query = db_update('system')->fields(array('bootstrap' => 0));
  if ($bootstrap_modules) {
      ->fields(array('bootstrap' => 1))
      ->condition('name', $bootstrap_modules, 'IN')
    $query->condition('name', $bootstrap_modules, 'NOT IN');
  // Reset the cached list of bootstrap modules.