You are here

function wordstream_kwresearch_sources in WordStream Keyword Tools 6

Same name and namespace in other branches
  1. 7 wordstream.module \wordstream_kwresearch_sources()

Implentation of hook_contentanalysis_analyzers() register contentanalysisexample with contentanalysis analyzers registry

File

./wordstream.module, line 423

Code

function wordstream_kwresearch_sources() {
  $sources['wordstream'] = array(
    'title' => t('WordStream'),
    'module' => 'wordstream',
    'form_options' => 'wordstream_stats_report_form_options',
    'stats_callback' => 'wordstream_kwresearch_get_keyword_stats',
    'searches_ratio' => variable_get('wordstream_kwresearch_searches_ratio', 3549.7),
    // ratio = total daily searches / count from data
    'stats_report_columns' => array(
      'wordstream_searches' => t('WS count'),
    ),
    'stats_report_values_callback' => 'wordstream_kwresearch_format_stats_values',
  );
  return $sources;
}