function _ctools_drush_export_view

View a single object.

Parameters

$table_name:

$object:

File

drush/ctools.drush.inc, line 657

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'));
    }
}