summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/view.inc5
-rw-r--r--plugins/views_plugin_pager.inc5
2 files changed, 10 insertions, 0 deletions
diff --git a/includes/view.inc b/includes/view.inc
index ca28824..09f9831 100644
--- a/includes/view.inc
+++ b/includes/view.inc
@@ -894,6 +894,11 @@ class view extends views_db_object {
$cache->cache_start();
}
+ // Run pre_render for the pager as it might change the result.
+ if (!empty($this->query->pager)) {
+ $this->query->pager->pre_render($this->result);
+ }
+
// Initialize the style plugin.
$this->init_style();
diff --git a/plugins/views_plugin_pager.inc b/plugins/views_plugin_pager.inc
index 4d827f6..1131bb4 100644
--- a/plugins/views_plugin_pager.inc
+++ b/plugins/views_plugin_pager.inc
@@ -173,6 +173,11 @@ class views_plugin_pager extends views_plugin {
function post_execute(&$result) { }
/**
+ * Perform any needed actions just before rendering.
+ */
+ function pre_render(&$result) { }
+
+ /**
* Render the pager.
*
* Called during the view render process, this will render the