You are here

function theme_coder_review in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/coder_review.module \theme_coder_review()

Returns HTML for line entry in coder_review_form() and the results produced.

Parameters

array $variables: An associative array containing the following keys:

  • filename: The filename that was checked as a string.
  • results: An array that lists of the results (in HTML format) to display. See do_coder_reviews() for format.
2 theme calls to theme_coder_review()
_coder_review_form_output in coder_review/coder_review.module
???
_coder_review_page_form_includes in coder_review/coder_review.module
Adds results to form definition for display on the coder review page.

File

coder_review/coder_review.module, line 954
Developer module to assist with coder reviews and API upgrade suggestions.

Code

function theme_coder_review($variables) {
  $output = '<h2>' . basename($variables['filename']) . '</h2>';
  if (!empty($variables['results'])) {
    $output .= theme('item_list', array(
      'items' => $variables['results'],
    ));
  }
  return '<div class="coder">' . $output . '</div>';
}