function views_handler::show_expose_form

cis7 handlers.inc views_handler::show_expose_form(&$form, &$form_state)
cle7 handlers.inc views_handler::show_expose_form(&$form, &$form_state)
elmsmedia7 handlers.inc views_handler::show_expose_form(&$form, &$form_state)
icor7 handlers.inc views_handler::show_expose_form(&$form, &$form_state)
meedjum_blog7 handlers.inc views_handler::show_expose_form(&$form, &$form_state)
mooc7 handlers.inc views_handler::show_expose_form(&$form, &$form_state)

Shortcut to display the exposed options form.

2 calls to views_handler::show_expose_form()
views_handler_filter::options_form in sites/all/modules/ulmus/views/handlers/views_handler_filter.inc
Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
views_handler_sort::options_form in sites/all/modules/ulmus/views/handlers/views_handler_sort.inc
Basic options for all sort criteria

File

sites/all/modules/ulmus/views/includes/handlers.inc, line 547
Defines the various handler objects to help build and display views.

Class

views_handler
Base handler, from which all the other handlers are derived. It creates a common interface to create consistency amongst handlers and data.

Code

function show_expose_form(&$form, &$form_state) {
  if (empty($this->options['exposed'])) {
    return;
  }

  $this->expose_form($form, $form_state);

  // When we click the expose button, we add new gadgets to the form but they
  // have no data in $_POST so their defaults get wiped out. This prevents
  // these defaults from getting wiped out. This setting will only be TRUE
  // during a 2nd pass rerender.
  if (!empty($form_state['force_expose_options'])) {
    foreach (element_children($form['expose']) as $id) {
      if (isset($form['expose'][$id]['#default_value']) && !isset($form['expose'][$id]['#value'])) {
        $form['expose'][$id]['#value'] = $form['expose'][$id]['#default_value'];
      }
    }
  }
}
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.