function _drush_core_status_format_table_data

8.0.x core.drush.inc _drush_core_status_format_table_data($output, $metadata)
6.x core.drush.inc _drush_core_status_format_table_data($output, $metadata)
7.x core.drush.inc _drush_core_status_format_table_data($output, $metadata)
master core.drush.inc _drush_core_status_format_table_data($output, $metadata)
1 string reference to '_drush_core_status_format_table_data'
core_drush_command in commands/core/core.drush.inc
Implementation of hook_drush_command().

File

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

Code

function _drush_core_status_format_table_data($output, $metadata) {
  if (drush_get_option('full', FALSE) == FALSE) {
    // Hide any key that begins with a %
    foreach ($output as $key => $value) {
      if ($key[0] == '%') {
        unset($output[$key]);
      }
    }
    // Hide 'Modules path' and 'Themes path' as well
    unset($output['modules']);
    unset($output['themes']);
    // Shorten the list of alias files if there are too many
    if (isset($output['drush-alias-files']) && count($output['drush-alias-files']) > 24) {
      $msg = dt("\nThere are !count more alias files. Run with --full to see the full list.", array('!count' => count($output['drush-alias-files']) - 1));
      $output['drush-alias-files'] = array($output['drush-alias-files'][0], $msg);
    }
  }
  return $output;
}