function wordstream_kwresearch_format_stats_values in WordStream Keyword Tools 6
Same name and namespace in other branches
- 7 wordstream.module \wordstream_kwresearch_format_stats_values()
1 string reference to 'wordstream_kwresearch_format_stats_values'
- wordstream_kwresearch_sources in ./
wordstream.module - Implentation of hook_contentanalysis_analyzers() register contentanalysisexample with contentanalysis analyzers registry
File
- ./
wordstream.module, line 469
Code
function wordstream_kwresearch_format_stats_values($values, $keyword = '', $type = 'term') {
switch ($type) {
case 'wordstream_searches':
if ($values['wordstream_searches'] > 0) {
$output = $values['wordstream_searches'] == 'NA' ? 'NA' : number_format($values['wordstream_searches']);
}
else {
$output = $values['wordstream_searches'];
}
break;
default:
return FALSE;
}
return $output;
}