You are here

function theme_coder in Coder 6.2

Same name and namespace in other branches
  1. 5.2 coder.module \theme_coder()
  2. 5 coder.module \theme_coder()
  3. 6 coder.module \theme_coder()

Format coder form and results.

Parameters

$name: Name of module/theme checked, not used.

$filename: String filename checked.

$results: Array list of results HTML to display. See do_coder_reviews() for format.

2 theme calls to theme_coder()
coder_page_form in ./coder.module
Implementation of hook_form().
_coder_page_form_includes in ./coder.module
Add results to form array for display on form page.

File

./coder.module, line 1949

Code

function theme_coder($name, $filename, $results) {

  // theme the output for the Drupal shell
  if (function_exists('_coder_drush_is_option') && _coder_drush_is_option('drush')) {
    return theme_drush_coder($name, $filename, $results);
  }
  $output = '<div class="coder"><h2>' . basename($filename) . '</h2>';
  if (!empty($results)) {
    $output .= theme('item_list', $results);
  }
  $output .= '</div>';
  return $output;
}