function contentanalysis_format_stat in Content Analysis 7
Same name and namespace in other branches
- 8 contentanalysis.module \contentanalysis_format_stat()
- 6 contentanalysis.module \contentanalysis_format_stat()
Formats a stats element
Parameters
$title: Human readable label for stat
$value: Stat value
$decimals: Decimals to round to on display
Return value
Stats formatted associative array
File
- ./
contentanalysis.module, line 1488
Code
function contentanalysis_format_stat($title, $value, $decimals = 0) {
return array(
'#title' => $title,
'#value' => $value,
'#decimals' => $decimals,
);
}