You are here

function wordstream_kwresearch_get_keyword_stats in WordStream Keyword Tools 6

Same name and namespace in other branches
  1. 7 wordstream.module \wordstream_kwresearch_get_keyword_stats()
1 string reference to 'wordstream_kwresearch_get_keyword_stats'
wordstream_kwresearch_sources in ./wordstream.module
Implentation of hook_contentanalysis_analyzers() register contentanalysisexample with contentanalysis analyzers registry

File

./wordstream.module, line 454

Code

function wordstream_kwresearch_get_keyword_stats($keywords, $params = NULL) {
  $data = wordstream_get_keyword_data($keywords, $msgs, $params);

  //dsm($data);
  $ret = array();
  if (is_array($data)) {
    foreach ($data as $v) {
      $ret[$v[0]] = array(
        'searches' => $v[1],
      );
    }
  }
  return $ret;
}