You are here

function views_plugin_display::view_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::view_special_blocks()
  2. 7.3 plugins/views_plugin_display.inc \views_plugin_display::view_special_blocks()

Render any special blocks provided for this display.

File

plugins/views_plugin_display.inc, line 1976
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 view_special_blocks($type) {
  if ($type == '-exp') {

    // avoid interfering with the admin forms.
    if (arg(0) == 'admin' && arg(1) == 'build' && arg(2) == 'views') {
      return;
    }
    $this->view
      ->init_handlers();
    return array(
      'content' => $this->view
        ->render_exposed_form(TRUE),
    );
  }
}