diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 4731244..0fbc52f 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -2128,23 +2128,21 @@ function drupal_anonymous_user() { } /** + * Ensures Drupal is bootstrapped to the specified phase. + * * In order to bootstrap Drupal from another PHP script, you can use this code: * @code * define('DRUPAL_ROOT', '/path/to/drupal'); * require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; - * drupal_boostrap(DRUPAL_BOOTSTRAP_FULL); + * drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); * @endcode - * In this example the Drupal installation to bootstrap is located at - * '/path/to/drupal'. If you only want to bootstrap the Drupal database you can - * use DRUPAL_BOOTSTRAP_DATABASE instead of DRUPAL_BOOTSTRAP_FULL. Each phase - * adds to the previous one, so invoking a later phase automatically runs the - * earlier phases as well. For a full description of the different bootstrap - * levels see the $phase parameter below. * * @param $phase - * A Drupal bootstrap constant. The possible bootstrap levels are: + * A constant telling which phase to boostrap to. When you bootstrap to a + * particular phase, all earlier phases are run automatically. Possible + * values: * - DRUPAL_BOOTSTRAP_CONFIGURATION: Initializes configuration. - * - DRUPAL_BOOTSTRAP_PAGE_CACHE: Tries to server a cached page. + * - DRUPAL_BOOTSTRAP_PAGE_CACHE: Tries to serve a cached page. * - DRUPAL_BOOTSTRAP_DATABASE: Initializes the database layer. * - DRUPAL_BOOTSTRAP_VARIABLES: Initializes the variable system. * - DRUPAL_BOOTSTRAP_SESSION: Initializes session handling.