diff --git a/commands/core/outputformat.drush.inc b/commands/core/outputformat.drush.inc index 5fbd720cdf..5b26b2778a 100644 --- a/commands/core/outputformat.drush.inc +++ b/commands/core/outputformat.drush.inc @@ -208,6 +208,7 @@ function outputformat_drush_engine_outputformat() { 'machine-parsable' => TRUE, 'engine-class' => 'list', 'list-item-type' => 'nested-csv', + 'labeled-list' => TRUE, 'description' => 'A list of values, one per row, each of which is a comma-separated list of values.', 'engine-capabilities' => array('format-table'), 'topic-example' => array(array('a', 12, 'a@one.com'),array('b', 17, 'b@two.com')), diff --git a/commands/core/outputformat/list.inc b/commands/core/outputformat/list.inc index cb56f685ab..c46da3f0f1 100644 --- a/commands/core/outputformat/list.inc +++ b/commands/core/outputformat/list.inc @@ -106,7 +106,7 @@ class drush_outputformat_list extends drush_outputformat { } // Include field labels, if specified - if (!isset($metadata['list-item']) && is_array($input) && isset($metadata['field-labels'])) { + if (!isset($metadata['list-item']) && isset($metadata['labeled-list']) && is_array($input) && isset($metadata['field-labels'])) { if (isset($metadata['include-field-labels']) && $metadata['include-field-labels']) { array_unshift($input, $metadata['field-labels']); }