You are here

function wysiwyg_profile_form_cancel_submit in Wysiwyg 6.2

Same name and namespace in other branches
  1. 7.2 wysiwyg.admin.inc \wysiwyg_profile_form_cancel_submit()

Cancel submit handler for Wysiwyg profile form.

See also

wysiwyg_profile_form()

1 string reference to 'wysiwyg_profile_form_cancel_submit'
wysiwyg_profile_form in ./wysiwyg.admin.inc
Form builder for Wysiwyg profile form.

File

./wysiwyg.admin.inc, line 450
Integrate Wysiwyg editors into Drupal.

Code

function wysiwyg_profile_form_cancel_submit($form, &$form_state) {
  $format = $form_state['values']['format'];

  // Clear the editing caches.
  if (module_exists('ctools')) {
    ctools_include('object-cache');
    ctools_object_cache_clear('wysiwyg_profile', 'format' . $format);
  }
  else {
    cache_clear_all('wysiwyg_profile:format' . $format, 'cache');
  }
  $form_state['redirect'] = 'admin/settings/wysiwyg';
}