function piwik_stats_field_info in Piwik Statistic Integration 7.2
Implements hook_field_info().
Provides the description of the field.
File
- ./
piwik_stats.module, line 179 - Integrates piwik statistics as entity fields.
Code
function piwik_stats_field_info() {
return array(
'piwik_stats' => array(
'label' => t('Piwik Statistical Field'),
'description' => t('Holds piwiks statistical information of a node.'),
'default_widget' => 'piwik_stats_hidden',
'default_formatter' => 'piwik_stats_list',
'settings' => array(
'period' => 'day',
'show_in_statistics_page' => TRUE,
),
),
);
}