You are here

function _coder_review_drush_xml_output_reviews in Coder 7.2

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

Formats XML output for a list of chosen Coder reviews.

Parameters

array $reviews: An array of Reviews.

array $avail_reviews: ???

1 call to _coder_review_drush_xml_output_reviews()
drush_coder_review in coder_review/coder_review.drush.inc
Performs the actual review for drush.

File

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

Code

function _coder_review_drush_xml_output_reviews(array $reviews, array $avail_reviews) {
  _coder_review_drush_print('<reviews>');
  foreach ($reviews as $review) {
    _coder_review_drush_print('<review>' . $avail_reviews[$review]['#title'] . '</review>');
  }
  _coder_review_drush_print('</reviews>');
}