diff --git a/drush/ctools.drush.inc b/drush/ctools.drush.inc index 97feecc..b5daff5 100644 --- a/drush/ctools.drush.inc +++ b/drush/ctools.drush.inc @@ -341,6 +341,7 @@ function drush_ctools_export_info() { // Get info on these tables, or all tables if none specified. $info = _drush_ctools_export_info($table_names, (bool) $filter); + $schemas = $info['schemas']; $exportables = $info['exportables']; if (empty($exportables)) { @@ -405,11 +406,12 @@ function drush_ctools_export_info() { } // Build a tabular output as default. else { - $header = $tables_only ? array() : array(dt('Base table'), dt('Exportables')); + $header = $tables_only ? array() : array(dt('Module'), dt('Base table'), dt('Exportables')); $rows = array(); foreach ($exportables as $table => $info) { if (is_array($info)) { $row = array( + $schemas[$table]['module'], $table, // Machine name is better for this? shellColours::getColouredOutput(implode("\n", array_keys($info)), 'light_green') . "\n", @@ -423,7 +425,7 @@ function drush_ctools_export_info() { if (!empty($rows)) { drush_print("\n"); array_unshift($rows, $header); - drush_print_table($rows, TRUE, array(20)); + drush_print_table($rows, TRUE, array(20, 20)); drush_print(dt('Total exportables found: !total', array('!total' => $exportable_counts['total']))); foreach ($exportable_counts['exportables'] as $table_name => $count) { drush_print(dt('!table_name (!count)', array('!table_name' => $table_name, '!count' => $count)), 2);