From b7f78ee2da0b4ab91391e1c356f6b19b50ec3649 Mon Sep 17 00:00:00 2001
From: damiankloip <damiankloip@1037976.no-reply.drupal.org>
Date: Sun, 22 Jul 2012 22:04:06 +0200
Subject: [PATCH] Issue #1580816 by damiankloip | cperg: Added Count Records on
 Current Page.

---
 handlers/views_handler_area_result.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/handlers/views_handler_area_result.inc b/handlers/views_handler_area_result.inc
index d1d986ff2e68..86b1849b8d6a 100644
--- a/handlers/views_handler_area_result.inc
+++ b/handlers/views_handler_area_result.inc
@@ -33,6 +33,7 @@ function options_form(&$form, &$form_state) {
         '@name -- the human-readable name of the view',
         '@per_page -- the number of items per page',
         '@current_page -- the current page number',
+        '@current_record_count -- the current page record count',
         '@page_count -- the total page count',
       ),
     );
@@ -79,8 +80,9 @@ function render($empty = FALSE) {
       $start = ($current_page - 1) * $per_page + 1;
       $end = $total_count;
     }
+    $current_record_count = ($end - $start) + 1;
     // Get the search information.
-    $items = array('start', 'end', 'total', 'name', 'per_page', 'current_page', 'page_count');
+    $items = array('start', 'end', 'total', 'name', 'per_page', 'current_page', 'current_record_count', 'page_count');
     $replacements = array();
     foreach ($items as $item) {
       $replacements["@$item"] = ${$item};
-- 
GitLab