projects
/
project/views.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cb73a0f
)
by dereine: Add pager::pre_render
author
Daniel Wehner
Sat, 7 Jan 2012 20:15:47 +0000 (21:15 +0100)
committer
Daniel Wehner
Sat, 7 Jan 2012 20:17:41 +0000 (21:17 +0100)
includes/view.inc
patch
|
blob
|
blame
|
history
plugins/views_plugin_pager.inc
patch
|
blob
|
blame
|
history
diff --git
a/includes/view.inc
b/includes/view.inc
index
ca28824
..
09f9831
100644
(file)
--- 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
(file)
--- 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