1.20.x filter.admin.inc filter_admin_format_editor_submit($form, &$form_state)

Form submission handler for filter_admin_format_form().

Sets the editor_info property so that the form can be AJAX-updated.

File

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

Code

function filter_admin_format_editor_submit($form, &$form_state) {
  $editor_name = $form_state['values']['editor'];
  $editors = filter_get_editors();
  if ($editor_name && isset($editors[$editor_name])) {
    $form_state['editor_info'] = $editors[$editor_name];
  }
  else {
    $form_state['editor_info'] = array();
  }
  $form_state['rebuild'] = TRUE;
}