function statistics_counter_entity_property_info_alter in Statistics Counter 7
Same name and namespace in other branches
- 8 statistics_counter.module \statistics_counter_entity_property_info_alter()
Implements hook_entity_property_info_alter().
File
- ./
statistics_counter.module, line 94 - Statistics Counter
Code
function statistics_counter_entity_property_info_alter(&$info) {
$info['node']['properties']['weekcount'] = array(
'type' => 'integer',
'label' => t('Week node view counter'),
'description' => t('The total number of times the node has been viewed this week.'),
'sanitized' => TRUE,
'getter callback' => 'statistics_counter_weekcount_getter_callback',
);
$info['node']['properties']['monthcount'] = array(
'type' => 'integer',
'label' => t('Month node view counter'),
'description' => t('The total number of times the node has been viewed this month.'),
'sanitized' => TRUE,
'getter callback' => 'statistics_counter_monthcount_getter_callback',
);
$info['node']['properties']['yearcount'] = array(
'type' => 'integer',
'label' => t('Year node view counter'),
'description' => t('The total number of times the node has been viewed this year.'),
'sanitized' => TRUE,
'getter callback' => 'statistics_counter_yearcount_getter_callback',
);
}