You are here

function views_plugin_style_atom_fields::render in Views Atom 7

Override the parent render() method to check if this View is empty.

@TODO, this override is useless without a new empty handler. The delete functionality should be replicated there.

Overrides views_plugin_style::render

File

./views_plugin_style_atom_fields.inc, line 225
Style plugin for a standard Atom feed.

Class

views_plugin_style_atom_fields
@file Style plugin for a standard Atom feed.

Code

function render() {
  if (empty($this->view->result) && !$this->view->style_plugin
    ->even_empty()) {
    return $this->view->display_handler
      ->render_area('empty');
  }
  else {
    return parent::render();
  }
}