function _core_site_credentials

8.0.x core.drush.inc _core_site_credentials($right_margin = 0)
6.x core.drush.inc _core_site_credentials($right_margin = 0)
7.x core.drush.inc _core_site_credentials($right_margin = 0)
3.x core.drush.inc _core_site_credentials()
4.x core.drush.inc _core_site_credentials()
5.x core.drush.inc _core_site_credentials()
master core.drush.inc _core_site_credentials($right_margin = 0)
1 call to _core_site_credentials()
core_drush_help in commands/core/core.drush.inc
Implementation of hook_drush_help().

File

commands/core/core.drush.inc, line 485
Core drush commands.

Code

function _core_site_credentials($right_margin = 0) {
  // Leave some space on the right so that we can put the result into the
  // drush_log, which will again wordwrap the result.
  $original_columns = drush_get_context('DRUSH_COLUMNS', 80);
  drush_set_context('DRUSH_COLUMNS', $original_columns - $right_margin);
  $status_table = _core_site_status_table();
  $metadata = drush_get_command_format_metadata('core-status');
  $output = drush_format($status_table, $metadata, 'key-value');
  drush_set_context('DRUSH_COLUMNS', $original_columns);
  return $output;
}