function theme_contentanalysis_analysis_stats in Content Analysis 7
Same name and namespace in other branches
- 8 contentanalysis.module \theme_contentanalysis_analysis_stats()
- 6 contentanalysis.module \theme_contentanalysis_analysis_stats()
Theses analysis report stats elements into output
Parameters
$stats: Analysis stats formatted associative array formatted by contentanalysis_format_stat()
Return value
Themed stats section
1 call to theme_contentanalysis_analysis_stats()
- theme_contentanalysis_status_report in ./
contentanalysis.module - Theming function for analysis status report
File
- ./
contentanalysis.module, line 1413
Code
function theme_contentanalysis_analysis_stats($stats) {
if (!$stats || !is_array($stats)) {
return '';
}
$output = '<div class="contentanalysis_stats">' . "\n";
$i = 0;
foreach ($stats as $sid => $item) {
$output .= ($i ? ', ' : '') . $item['#title'] . '=' . number_format($item['#value'], $item['#decimals'] ? $item['#decimals'] : 0);
$i++;
}
$output .= "</div>\n";
return $output;
}