You are here

function _coder_review_drush_print in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/coder_review.drush.inc \_coder_review_drush_print()

Switches between drush print and drush print pipe of output.

Parameters

string $message: A message string to print for display in drush.

8 calls to _coder_review_drush_print()
coder_review_print_drush_messages in coder_review/coder_review.drush.inc
Prints Coder review messages in a format for drush use.
drush_coder_review in coder_review/coder_review.drush.inc
Performs the actual review for drush.
theme_drush_coder_review in coder_review/coder_review.drush.inc
Returns the results and filenames of a review in a format for drush use.
_coder_review_drush_xml_output_footer in coder_review/coder_review.drush.inc
_coder_review_drush_xml_output_header in coder_review/coder_review.drush.inc
Formats output as an appropriate XML header tag.

... See full list

File

coder_review/coder_review.drush.inc, line 741
Command line utility support for Coder_review module.

Code

function _coder_review_drush_print($message) {
  if (drush_get_context('DRUSH_PIPE')) {
    drush_print_pipe($message);
  }
  else {
    drush_print($message);
  }
}