function theme_seo_check_results in SEO Compliance Checker 6
Same name and namespace in other branches
- 6.2 inc/seo_checker.theme.inc \theme_seo_check_results()
By default the check results are themed as a normal form item whose value contains the check results, rendered as a table.
File
- inc/
seo_checker.theme.inc, line 71 - Contains the functions used to theme the outputs of this module.
Code
function theme_seo_check_results($element) {
drupal_add_css(drupal_get_path('module', 'seo_checker') . '/css/seo_checker.css');
$output = theme('table', array(
t('Rule'),
t('Message'),
t('Achieved'),
t('Required'),
t('Passed'),
), $element['#results'], array());
$element['#type'] = 'item';
$element['#value'] = $output;
$element['#prefix'] = '<div class="seo-check-results">';
$element['#suffix'] = '</div>';
return drupal_render($element);
}