You are here

function views_attach_plugin_display_node_content::execute in Views attach 6

Same name and namespace in other branches
  1. 6.2 views_attach_plugin_display_node_content.inc \views_attach_plugin_display_node_content::execute()
  2. 7.2 views_attach_plugin_display_node_content.inc \views_attach_plugin_display_node_content::execute()

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

File

./views_attach_plugin_display_node_content.inc, line 147

Class

views_attach_plugin_display_node_content
The plugin that handles node-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.
  $data = $this->view
    ->render();
  if (!empty($this->view->result) || $this
    ->get_option('empty') || !empty($this->view->style_plugin->definition['even empty'])) {
    return $data;
  }
}