function _drush_bootstrap_do_drupal_site

6.x bootstrap.inc _drush_bootstrap_do_drupal_site()
3.x environment.inc _drush_bootstrap_do_drupal_site()
4.x environment.inc _drush_bootstrap_do_drupal_site()
5.x bootstrap.inc _drush_bootstrap_do_drupal_site()

Called by _drush_bootstrap_drupal_site to do the main work of the drush drupal site bootstrap.

2 calls to _drush_bootstrap_do_drupal_site()
_drush_bootstrap_drupal_site in includes/environment.inc
Initialize a site on the Drupal root.
_drush_bootstrap_redo_drupal_site in includes/environment.inc
Re-do the drupal site bootstrap (and possibly the drupal root bootstrap) if a site alias was processed after the site bootstrap phase completed. This will happen when processing "drush sitealias command" for a site alias defined in a…

File

includes/environment.inc, line 832
Functions used by drush to query the environment and setting the current configuration.

Code

function _drush_bootstrap_do_drupal_site() {
  $drush_uri = drush_set_context('DRUSH_URI', drush_bootstrap_value('drush_uri'));
  $site = drush_set_context('DRUSH_DRUPAL_SITE', drush_bootstrap_value('site'));
  $conf_path = drush_set_context('DRUSH_DRUPAL_SITE_ROOT', drush_bootstrap_value('conf_path'));

  // Create an alias '@self'
  _drush_sitealias_cache_alias('self', array('root' => drush_get_context('DRUSH_DRUPAL_ROOT'), 'uri' => $drush_uri));

  drush_log(dt("Initialized Drupal site !site at !site_root", array('!site' => $site, '!site_root' => $conf_path)));
  drush_load_config('site');

  _drush_bootstrap_global_options();
}