function views_attach_plugin_display_node_content::execute in Views attach 7.2
Same name and namespace in other branches
- 6.2 views_attach_plugin_display_node_content.inc \views_attach_plugin_display_node_content::execute()
- 6 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.
Overrides views_plugin_display::execute
File
- ./
views_attach_plugin_display_node_content.inc, line 235
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.
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;
}
}