function better_exposed_filters_exposed_form_plugin::options_submit

cis7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::options_submit(&$form, &$form_state)
cle7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::options_submit(&$form, &$form_state)
elmsmedia7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::options_submit(&$form, &$form_state)
icor7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::options_submit(&$form, &$form_state)
meedjum_blog7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::options_submit(&$form, &$form_state)
mooc7 better_exposed_filters_exposed_form_plugin.inc better_exposed_filters_exposed_form_plugin::options_submit(&$form, &$form_state)

Submit handler for the options to unpack the format/text from the text_format field.

File

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

Class

better_exposed_filters_exposed_form_plugin

Code

function options_submit(&$form, &$form_state) {
  $view = $form_state['view'];
  $values = &$form_state['values'];
  $values['exposed_form_options']['text_input_required_format'] = $values['text_input_required']['format'];
  $values['exposed_form_options']['text_input_required'] = $values['text_input_required']['value'];
  if (function_exists('i18n_string_update')) {
    $combine_rewrite = $values['exposed_form_options']['bef']['sort']['advanced']['combine_rewrite'];
    $textgroup = implode(':', array(
      'better_exposed_filters',
      'combine_rewrite',
      $view->name,
      $view->current_display,
    ));
    i18n_string_update($textgroup, $combine_rewrite, array(
      'format' => FALSE,
    ));
  }
  parent::options_submit($form, $form_state);
}