You are here

function views_plugin_display::get_special_blocks in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_display.inc \views_plugin_display::get_special_blocks()
  2. 7.3 plugins/views_plugin_display.inc \views_plugin_display::get_special_blocks()

Provide the block system with any exposed widget blocks for this display.

File

plugins/views_plugin_display.inc, line 1961
Contains the base display plugin.

Class

views_plugin_display
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Code

function get_special_blocks() {
  $delta = '-exp-' . $this->view->name . '-' . $this->display->id;
  $desc = t('Exposed form: @view-@display_id', array(
    '@view' => $this->view->name,
    '@display_id' => $this->display->id,
  ));
  return array(
    $delta => array(
      'info' => $desc,
      'cache' => BLOCK_NO_CACHE,
    ),
  );
}