function views_plugin_display::get_special_blocks

cis7 views_plugin_display.inc views_plugin_display::get_special_blocks()
cle7 views_plugin_display.inc views_plugin_display::get_special_blocks()
elmsmedia7 views_plugin_display.inc views_plugin_display::get_special_blocks()
icor7 views_plugin_display.inc views_plugin_display::get_special_blocks()
meedjum_blog7 views_plugin_display.inc views_plugin_display::get_special_blocks()
mooc7 views_plugin_display.inc views_plugin_display::get_special_blocks()

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

File

sites/all/modules/ulmus/views/plugins/views_plugin_display.inc, line 2778
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() {
  $blocks = array();

  if ($this->uses_exposed_form_in_block()) {
    $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));

    $blocks[$delta] = array(
      'info' => $desc,
      'cache' => DRUPAL_NO_CACHE,
    );
  }

  return $blocks;
}