function theme_coder in Coder 6
Same name and namespace in other branches
- 5.2 coder.module \theme_coder()
- 5 coder.module \theme_coder()
- 6.2 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 1714 - Developer Module that assists with code review and version upgrade that supports a plug-in extensible hook system so contributed modules can define additional review standards.
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;
}