function editor_admin_format_editor_submit in Editor 7
Element submission handler for configuring an editor.
Sets the editor_info property so that the form can be AJAX-updated.
1 string reference to 'editor_admin_format_editor_submit'
- editor_form_filter_admin_format_form_alter in includes/
editor.admin.inc - Implements hook_form_FORM_ID_alter().
File
- includes/
editor.admin.inc, line 295 - Replaces the core Filter module administration pages.
Code
function editor_admin_format_editor_submit($form, &$form_state) {
$editor_name = $form_state['values']['editor'];
$editors = editor_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;
}