diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-08-08 18:34:57 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-08-08 18:34:57 -0300 |
commit | df1f2a038e12e3456567dfc6bfbe170572befe0e (patch) | |
tree | 95726cd26b0dadd312a6d3a3add3e46558e0adb9 | |
parent | b47f10cb08ab4562ecf49bee10647b3b907c4163 (diff) | |
download | calendario-df1f2a038e12e3456567dfc6bfbe170572befe0e.tar.gz calendario-df1f2a038e12e3456567dfc6bfbe170572befe0e.tar.bz2 |
Implementing hook_views_pre_render()
-rw-r--r-- | calendario.module | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/calendario.module b/calendario.module index 9fc934a..0a4bfa8 100644 --- a/calendario.module +++ b/calendario.module @@ -44,3 +44,13 @@ function calendario_entity_info_alter(&$entity_info) { function calendario_widget($view = NULL) { return theme('embed-widget'); } + +/** + * Implements hook_views_pre_render() + */ +function calendario_views_pre_render(&$view) { + // Filter out unavailable items from view. + if (substr($view->name, 0, 10) == 'calendario' && substr($view->name, 0, 17) != 'calendario_widget') { + $view->footer = calendario_widget($view); + } +} |