You are here

public function views_plugin_display_block::execute in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_display_block.inc \views_plugin_display_block::execute()
  2. 6.2 plugins/views_plugin_display_block.inc \views_plugin_display_block::execute()

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

Overrides views_plugin_display::execute

File

plugins/views_plugin_display_block.inc, line 55
Definition of views_plugin_display_block.

Class

views_plugin_display_block
The plugin that handles a block.

Code

public function execute() {

  // Prior to this being called, the $view should already be set to this
  // display, and arguments should be set on the view.
  $info['content'] = $this->view
    ->render();
  $title = $this->view
    ->get_title();
  $info['subject'] = $title == '<none>' ? '' : filter_xss_admin($title);
  if (!empty($this->view->result) || $this
    ->get_option('empty') || !empty($this->view->style_plugin->definition['even empty'])) {
    return $info;
  }
}