1 ckeditor5.upgrade.inc ckeditor5_upgrade_form_submit($form, &$form_state)

Submit handler for ckeditor5_upgrade_form().

File

core/modules/ckeditor5/ckeditor5.upgrade.inc, line 66
CKEditor 4 to CKEditor 5 upgrade code.

Code

function ckeditor5_upgrade_form_submit($form, &$form_state) {
  $format = $form_state['format'];
  $updated_format = ckeditor5_upgrade_format($format);
  filter_format_save($updated_format);
  backdrop_set_message(t('The %label text format has been upgraded from CKEditor 4 to CKEditor 5. Verify the CKEditor 5 toolbar and settings.', array('%label' => $format->name)));
  $form_state['redirect'] = 'admin/config/content/formats/' . $format->format;
}