You are here

function _ctools_drush_export_view in Chaos Tool Suite (ctools) 7

View a single object.

Parameters

$table_name:

$object:

File

drush/ctools.drush.inc, line 657
CTools Drush commands.

Code

function _ctools_drush_export_view($table_name, $object) {
  $indent = drush_get_option('indent', '');
  $no_colour = drush_get_option('no-colour', FALSE);
  $export = ctools_export_crud_export($table_name, $object, $indent);
  if ($no_colour) {
    drush_print("\n{$export}");
  }
  else {
    drush_print(shellColours::getColouredOutput("\n{$export}", 'light_green'));
  }
}