function views_plugin_display::view_special_blocks

cis7 views_plugin_display.inc views_plugin_display::view_special_blocks($type)
cle7 views_plugin_display.inc views_plugin_display::view_special_blocks($type)
elmsmedia7 views_plugin_display.inc views_plugin_display::view_special_blocks($type)
icor7 views_plugin_display.inc views_plugin_display::view_special_blocks($type)
meedjum_blog7 views_plugin_display.inc views_plugin_display::view_special_blocks($type)
mooc7 views_plugin_display.inc views_plugin_display::view_special_blocks($type)

Render any special blocks provided for this display.

File

sites/all/modules/ulmus/views/plugins/views_plugin_display.inc, line 2797
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) == 'structure' && arg(2) == 'views') {
      return;
    }
    $this->view->init_handlers();

    if ($this->uses_exposed() && $this->get_option('exposed_block')) {
      $exposed_form = $this->get_plugin('exposed_form');
      return array(
        'content' => $exposed_form->render_exposed_form(TRUE),
      );
    }
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.