You are here

function calendar_plugin_display_block::execute in Calendar 7

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

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

TODO This can be removed when the patch at http://drupal.org/node/290328 gets into an official release.

Overrides views_plugin_display_block::execute

File

includes/calendar_plugin_display_block.inc, line 74
Views block plugin for the Calendar module.

Class

calendar_plugin_display_block
The plugin that handles a calendar block.

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.
  $info['content'] = $this->view
    ->render();
  $info['subject'] = filter_xss_admin($this->view
    ->get_title());
  if (!empty($this->view->result) || $this
    ->get_option('empty') || !empty($this->view->style_plugin->definition['even empty'])) {
    return $info;
  }
}