Community Documentation

_drupal_bootstrap_variables

7 bootstrap.inc _drupal_bootstrap_variables()
8 bootstrap.inc _drupal_bootstrap_variables()

Bootstrap variables: Load system variables and all enabled bootstrap modules.

▾ 1 function calls _drupal_bootstrap_variables()

drupal_bootstrap in includes/bootstrap.inc
A string describing a phase of Drupal to load. Each phase adds to the previous one, so invoking a later phase automatically runs the earlier phases too. The most important usage is that if you want to access the Drupal database from a script without…

Code

includes/bootstrap.inc, line 2331

<?php
function _drupal_bootstrap_variables() {
  global $conf;

  // Initialize the lock system.
  require_once DRUPAL_ROOT . '/' . variable_get('lock_inc', 'includes/lock.inc');
  lock_initialize();

  // Load variables from the database, but do not overwrite variables set in settings.php.
  $conf = variable_initialize(isset($conf) ? $conf : array());
  // Load bootstrap modules.
  require_once DRUPAL_ROOT . '/includes/module.inc';
  module_load_all(TRUE);
}
?>
Login or register to post comments