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/environment.inc
Helper function listing phases.

File

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

Code

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

  drush_drupal_login($drush_user);
  _drush_log_drupal_messages();
}