1 filter.admin.inc filter_admin_format_filter_settings_update($form, &$form_state)

Form submit handler for filter_admin_format_filter_settings_form().

File

core/modules/filter/filter.admin.inc, line 573
Admin page callbacks for the Filter module.

Code

function filter_admin_format_filter_settings_update($form, &$form_state) {
  form_state_values_clean($form_state);
  unset($form_state['values']['filter']);
  $filter_name = $form_state['filter_name'];
  $format = $form_state['format'];

  $format->filters[$filter_name]->settings = $form_state['values'];
  $format->updated = TRUE;
  filter_set_format_tempstore($format);
  filter_admin_set_message($format);

  $form_state['redirect'] = 'admin/config/content/formats/' . $format->format;
}