function better_exposed_filters_exposed_form_plugin::pre_render

cis7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::pre_render($values)
cle7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::pre_render($values)
elmsmedia7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::pre_render($values)
icor7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::pre_render($values)
meedjum_blog7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::pre_render($values)
mooc7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::pre_render($values)

Pre render callback to append the 'no values found' text if input required options is enabled.

File

sites/all/modules/ulmus/better_exposed_filters/better_exposed_filters_exposed_form_plugin.inc, line 1615
Provides an Better Exposed Filters exposed form plugin for View 3.x.

Class

better_exposed_filters_exposed_form_plugin

Code

function pre_render($values) {
  if (!$this->exposed_filter_applied() && !empty($this->options['input_required'])) {
    $options = array(
      'id' => 'area',
      'table' => 'views',
      'field' => 'area',
      'label' => '',
      'relationship' => 'none',
      'group_type' => 'group',
      'content' => $this->options['text_input_required'],
      'format' => $this->options['text_input_required_format'],
      'empty' => TRUE,
    );
    $handler = views_get_handler('views', 'area', 'area');
    $handler->init($this->view, $options);
    $this->display->handler->handlers['empty'] = array(
      'area' => $handler,
    );
    $this->display->handler->set_option('empty', array('text' => $options));
  }
}
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.