1 views_plugin_display.inc | views_plugin_display::get_special_blocks() |
Provide the block system with any exposed widget blocks for this display.
File
- core/
modules/ views/ plugins/ views_plugin_display.inc, line 2807 - 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;
$title = t('Exposed form: @view (@display_id)', array('@view' => $this->view->get_human_name(), '@display_id' => $this->display->id));
$blocks[$delta] = array(
'info' => $title,
'description' => t('Provides filters that a user may change to adjust the results of a view.'),
'cache' => BACKDROP_NO_CACHE,
'class' => 'ViewsSpecialBlock',
);
}
return $blocks;
}