summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-08-08 18:50:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-08-08 18:50:54 -0300
commitdde0841838bedf4f258b20de5eed8b06e2228a65 (patch)
tree99b077e6021f37f23eeeead0ee3c60e437b60670
parentdf1f2a038e12e3456567dfc6bfbe170572befe0e (diff)
downloadcalendario-dde0841838bedf4f258b20de5eed8b06e2228a65.tar.gz
calendario-dde0841838bedf4f258b20de5eed8b06e2228a65.tar.bz2
Using calendario_views_post_render()
-rw-r--r--calendario.module7
1 files changed, 3 insertions, 4 deletions
diff --git a/calendario.module b/calendario.module
index 0a4bfa8..0ff2a4e 100644
--- a/calendario.module
+++ b/calendario.module
@@ -46,11 +46,10 @@ function calendario_widget($view = NULL) {
}
/**
- * Implements hook_views_pre_render()
+ * Implements hook_views_post_render()
*/
-function calendario_views_pre_render(&$view) {
- // Filter out unavailable items from view.
+function calendario_views_post_render(&$view, &$output, &$cache) {
if (substr($view->name, 0, 10) == 'calendario' && substr($view->name, 0, 17) != 'calendario_widget') {
- $view->footer = calendario_widget($view);
+ $output .= calendario_widget($view);
}
}