You are here

function wordstream_kwresearch_format_stats_values in WordStream Keyword Tools 7

Same name and namespace in other branches
  1. 6 wordstream.module \wordstream_kwresearch_format_stats_values()

@todo Please document this function.

See also

http://drupal.org/node/1354

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;
}