You are here

function kwresearch_analyzer in Keyword Research 7

Same name and namespace in other branches
  1. 6 includes/contentanalysis.inc \kwresearch_analyzer()

Implements hook_analyzer() via custom define callback ().

1 string reference to 'kwresearch_analyzer'
kwresearch_contentanalysis_analyzer_info in includes/contentanalysis.inc
Implentation of hook_contentanalysis_analyzers() register contentanalysisexample with contentanalysis analyzers registry

File

includes/contentanalysis.inc, line 111
Contains Content Analysis integration functions

Code

function kwresearch_analyzer($context, $analysis, $params) {
  require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'kwresearch') . "/includes/stats_report.inc";
  $form = drupal_get_form('kwresearch_stats_report_form', $analysis, TRUE);
  $form = render($form);

  //$form .= drupal_get_form('kwresearch_keyword_stats_report_page');
  $form .= '<div id="kwresearch-report"></div>';
  $analysis['content'][] = contentanalysis_format_content($form, -1);
  return $analysis;
}