function image_gallery_plugin_display_image_gallery::render_empty in Image 6
Same name and namespace in other branches
- 7 contrib/image_gallery/views/image_gallery_plugin_display_image_gallery.inc \image_gallery_plugin_display_image_gallery::render_empty()
There are two special cases here:
- An empty view might have subgalleries. If that is the case we don't show
the empty text.
- Force the view title when no arguments are present.
File
- contrib/
image_gallery/ views/ image_gallery_plugin_display_image_gallery.inc, line 66
Class
- image_gallery_plugin_display_image_gallery
- The plugin that handles a full page.
Code
function render_empty() {
drupal_set_title(filter_xss_admin($this->view
->get_title()));
if (count($this->gallery_terms_view->result) == 0) {
return $this
->render_textarea('empty');
}
}