You are here

function eva_plugin_display_entity::execute in EVA: Entity Views Attachment 7

The display block handler returns the structure necessary for a block.

Overrides views_plugin_display::execute

File

./eva_plugin_display_entity.inc, line 303

Class

eva_plugin_display_entity
The plugin that handles entity-attached views.

Code

function execute() {

  // Prior to this being called, the $view should already be set to this
  // display, and arguments should be set on the view.
  if (!isset($this->view->override_path)) {
    $this->view->override_path = $_GET['q'];
  }
  $data = $this->view
    ->render();
  if (!empty($this->view->result) || $this
    ->get_option('empty') || !empty($this->view->style_plugin->definition['even empty'])) {
    return $data;
  }
}