summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}