function _drush_bootstrap_drupal_login

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

Log into the bootstrapped Drupal site with a specific username or user id.

1 string reference to '_drush_bootstrap_drupal_login'
_drush_bootstrap_phases in includes/bootstrap.inc
Helper function listing phases.

File

includes/bootstrap.inc, line 986
Drush bootstrapping code.

Code

function _drush_bootstrap_drupal_login() {
  $drush_user = drush_set_context('DRUSH_USER', drush_get_option('user', 0));

  drush_drupal_login($drush_user);
  _drush_log_drupal_messages();
}