function views_exposed_form_submit

cis7 views.module views_exposed_form_submit(&$form, &$form_state)
cle7 views.module views_exposed_form_submit(&$form, &$form_state)
elmsmedia7 views.module views_exposed_form_submit(&$form, &$form_state)
icor7 views.module views_exposed_form_submit(&$form, &$form_state)
meedjum_blog7 views.module views_exposed_form_submit(&$form, &$form_state)
mooc7 views.module views_exposed_form_submit(&$form, &$form_state)

Submit handler for exposed filters

1 call to views_exposed_form_submit()
bef_sort_combine_submit in sites/all/modules/ulmus/better_exposed_filters/better_exposed_filters.module
Unpacks sort_by and sort_order from the sort_bef_combine element.

File

sites/all/modules/ulmus/views/views.module, line 2047
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_exposed_form_submit(&$form, &$form_state) {
  foreach (array('field', 'filter') as $type) {
    $handlers = &$form_state['view']->$type;
    foreach ($handlers as $key => $info) {
      $handlers[$key]->exposed_submit($form, $form_state);
    }
  }
  $form_state['view']->exposed_data = $form_state['values'];
  $form_state['view']->exposed_raw_input = array();


  $exclude = array(
    'q',
    'submit',
    'form_build_id',
    'form_id',
    'form_token',
    'exposed_form_plugin',
    '',
    'reset',
  );
  $exposed_form_plugin = $form_state['exposed_form_plugin'];
  $exposed_form_plugin->exposed_form_submit($form, $form_state, $exclude);

  foreach ($form_state['values'] as $key => $value) {
    if (!in_array($key, $exclude)) {
      $form_state['view']->exposed_raw_input[$key] = $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.