You are here

function contentoptimizer_insight_analyzer_info in Content Optimizer 8

Same name and namespace in other branches
  1. 7.2 contentoptimizer.module \contentoptimizer_insight_analyzer_info()

Implements hook_insight_analyzer_info();

Return value

mixed

File

./contentoptimizer.module, line 59
Analyzes content for search engine optimization recommendations

Code

function contentoptimizer_insight_analyzer_info() {
  $analyzers['seo'] = array(
    'title' => t('Content Optimizer'),
    'type' => 'content',
    'contentanalyzer' => 'seo',
    'settings form elements callback' => 'contentoptimizer_alerts_settings',
  );
  $reports['quick_seo'] = array(
    'title' => t('Quick SEO'),
    'short title' => t('SEO'),
    'score type' => 'value',
    'alerts' => array(
      'seo_meta_title_length',
      'seo_body_length',
      'seo_keyword_not_set',
      'seo_keyword_meta_title_freq',
      'seo_keyword_body_freq',
    ),
  );
  $analyzers['seo']['reports'] = $reports;
  return $analyzers;
}