function contentoptimizer_intel_page_attribute_info in Content Optimizer 8
Same name and namespace in other branches
- 7.2 contentoptimizer.module \contentoptimizer_intel_page_attribute_info()
Implements hook_intel_page_attribute_info()
Return value
array
File
- ./
contentoptimizer.module, line 1052 - Analyzes content for search engine optimization recommendations
Code
function contentoptimizer_intel_page_attribute_info() {
$attributes = array();
$attributes['cw'] = array(
'title' => t('Word count'),
'title_plural' => t('Word counts'),
'description' => t('Number of words in the node body.'),
'type' => 'scalar',
'options_description' => t('Auto generated from readability module.'),
'options info callback' => 'contentoptimizer_page_attribute_cw_option_info',
'storage' => array(
'analytics' => array(
'struc' => 'dimension',
'index' => 11,
),
),
'index_grouping' => array(
0,
100,
200,
300,
400,
500,
600,
700,
800,
900,
1000,
1200,
1400,
1600,
1800,
2000,
),
);
$attributes['ctw'] = array(
'title' => t('Title word count'),
'title_plural' => t('Title word counts'),
'description' => t('Number of words in the meta page title.'),
'type' => 'scalar',
'options_description' => t('Auto generated from readability module.'),
'options info callback' => 'contentoptimizer_page_attribute_ctw_option_info',
'storage' => array(
'analytics' => array(
'struc' => 'dimension',
'index' => 11,
),
),
);
$attributes['ctc'] = array(
'title' => t('Title character count'),
'title_plural' => t('Title character counts'),
'description' => t('Number of characters in the meta page title.'),
'type' => 'scalar',
'options_description' => t('Auto generated from readability module.'),
'options info callback' => 'contentoptimizer_page_attribute_ctc_option_info',
'storage' => array(
'analytics' => array(
'struc' => 'dimension',
'index' => 11,
),
),
'index_grouping' => array(
0,
10,
20,
30,
40,
50,
60,
70,
80,
90,
100,
120,
140,
160,
180,
200,
),
);
return $attributes;
}