function 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 2992
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
public 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;
}