function views_plugin_display_block::execute_hook_block

2.x views_plugin_display_block.inc views_plugin_display_block::execute_hook_block($op = 'list', $delta = 0, $edit = array())

The default block handler doesn't support configurable items, but extended block handlers might be able to do interesting stuff with it.

File

plugins/views_plugin_display_block.inc, line 27
Contains the block display plugin.

Class

views_plugin_display_block
The plugin that handles a block.

Code

function execute_hook_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $delta = $this->view->name . '-' . $this->display->id;
    $desc = $this->get_option('block_description');

    if (empty($desc)) {
      $desc = t('@view: @display', array('@view' => $this->view->name, '@display' => $this->display->display_title));
    }
    return array(
      $delta => array(
        'info' => $desc,
        'cache' => $this->get_cache_type()
      )
    );
  }
}