/** * Execute the BackdropBoot::BOOTSTRAP_SITE phase. * * Initialize a site on the Backdrop root. * * We now set various contexts that we determined and confirmed to be valid. * Additionally we load an optional drushrc.php file in the site directory. */ function bootstrap_backdrop_site() { drush_load_config('site'); $drush_uri = drush_get_context('DRUSH_SELECTED_URI'); drush_set_context('DRUSH_URI', $drush_uri); $site = drush_set_context('DRUSH_BACKDROP_SITE', drush_bootstrap_value('site')); $conf_path = drush_set_context('DRUSH_BACKDROP_SITE_ROOT', drush_bootstrap_value('conf_path')); drush_log(dt("Initialized Backdrop site !site at !site_root", array('!site' => $site, '!site_root' => $conf_path))); _drush_preflight_global_options(); }
/** * Initialize a site on the Drupal root. * * We now set various contexts that we determined and confirmed to be valid. * Additionally we load an optional drushrc.php file in the site directory. */ function bootstrap_drupal_site() { drush_load_config('site'); $this->bootstrap_do_drupal_site(); }