5 * Provide views data for statistics.module.
9 * Implements hook_views_data().
11 function statistics_views_data() {
12 $data['node_counter']['table']['group'] = t('Content statistics');
14 $data['node_counter']['table']['join'] = [
15 'node_field_data' => [
16 'left_field' => 'nid',
21 $data['node_counter']['totalcount'] = [
22 'title' => t('Total views'),
23 'help' => t('The total number of times the node has been viewed.'),
25 'id' => 'statistics_numeric',
26 'click sortable' => TRUE,
39 $data['node_counter']['daycount'] = [
40 'title' => t('Views today'),
41 'help' => t('The total number of times the node has been viewed today.'),
43 'id' => 'statistics_numeric',
44 'click sortable' => TRUE,
57 $data['node_counter']['timestamp'] = [
58 'title' => t('Most recent view'),
59 'help' => t('The most recent time the node has been viewed.'),
61 'id' => 'node_counter_timestamp',
62 'click sortable' => TRUE,