function wordstream_kwresearch_format_stats_values in WordStream Keyword Tools 7
Same name and namespace in other branches
- 6 wordstream.module \wordstream_kwresearch_format_stats_values()
@todo Please document this function.
See also
1 string reference to 'wordstream_kwresearch_format_stats_values'
- wordstream_kwresearch_sources in ./
wordstream.module - @todo Please document this function.
File
- ./
wordstream.module, line 503
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;
}