function coder_review_print_drush_messages in Coder 7
Same name and namespace in other branches
- 7.2 coder_review/coder_review.drush.inc \coder_review_print_drush_messages()
Handle printing of drupal_set_message() messages.
1 call to coder_review_print_drush_messages()
- coder_review_page_form in coder_review/
coder_review.module - Implements hook_form().
File
- coder_review/
coder_review.drush.inc, line 293 - Command line utility for coder_review.
Code
function coder_review_print_drush_messages() {
foreach (drupal_get_messages() as $type => $messages) {
$output = _coder_review_drush_output(implode("\n ", $messages));
if (_coder_review_drush_is_option('xml') && !_coder_review_drush_is_option('checkstyle')) {
_coder_review_drush_print('<status type="' . $type . '">' . $output . '</status>');
}
elseif (!_coder_review_drush_is_option('checkstyle')) {
_coder_review_drush_print(dt(drupal_ucfirst($type) . ' Messages') . ":\n " . $output . "\n");
}
}
}