From ed9947609d2ee64bbcce266eb9eba9bf90ab2ab3 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Tue, 8 May 2018 13:12:03 +0200 Subject: [PATCH] Applied D6LTS contrib patch SA-CONTRIB-2016-036 --- modules/views/modules/statistics.views.inc | 12 ++++++++--- ...s_handler_field_node_counter_timestamp.inc | 21 +++++++++++++++++++ ...views_handler_field_statistics_numeric.inc | 21 +++++++++++++++++++ 3 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 modules/views/modules/statistics/views_handler_field_node_counter_timestamp.inc create mode 100644 modules/views/modules/statistics/views_handler_field_statistics_numeric.inc diff --git a/modules/views/modules/statistics.views.inc b/modules/views/modules/statistics.views.inc index 2148f8b..9f2514c 100644 --- a/modules/views/modules/statistics.views.inc +++ b/modules/views/modules/statistics.views.inc @@ -36,7 +36,7 @@ function statistics_views_data() { 'help' => t('The total number of times the node has been viewed.'), 'field' => array( - 'handler' => 'views_handler_field_numeric', + 'handler' => 'views_handler_field_statistics_numeric', 'click sortable' => TRUE, ), 'filter' => array( @@ -53,7 +53,7 @@ function statistics_views_data() { 'help' => t('The total number of times the node has been viewed today.'), 'field' => array( - 'handler' => 'views_handler_field_numeric', + 'handler' => 'views_handler_field_statistics_numeric', 'click sortable' => TRUE, ), 'filter' => array( @@ -70,7 +70,7 @@ function statistics_views_data() { 'help' => t('The most recent time the node has been viewed.'), 'field' => array( - 'handler' => 'views_handler_field_date', + 'handler' => 'views_handler_field_node_counter_timestamp', 'click sortable' => TRUE, ), 'filter' => array( @@ -258,6 +258,12 @@ function statistics_views_handlers() { 'views_handler_field_accesslog_path' => array( 'parent' => 'views_handler_field', ), + 'views_handler_field_statistics_numeric' => array( + 'parent' => 'views_handler_field_numeric', + ), + 'views_handler_field_node_counter_timestamp' => array( + 'parent' => 'views_handler_field_date', + ), ), ); } diff --git a/modules/views/modules/statistics/views_handler_field_node_counter_timestamp.inc b/modules/views/modules/statistics/views_handler_field_node_counter_timestamp.inc new file mode 100644 index 0000000..d665519 --- /dev/null +++ b/modules/views/modules/statistics/views_handler_field_node_counter_timestamp.inc @@ -0,0 +1,21 @@ +