You are here

function views_attach_plugin_display_profile::execute in Views attach 7.2

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

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

Overrides views_plugin_display::execute

File

./views_attach_plugin_display_profile.inc, line 197

Class

views_attach_plugin_display_profile
The plugin that handles a user profile.

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;
  }
}