You are here

function wysiwyg_profile_form_cancel_submit in Wysiwyg 7.2

Same name and namespace in other branches
  1. 6.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 445
Integrate Wysiwyg editors into Drupal.

Code

function wysiwyg_profile_form_cancel_submit($form, &$form_state) {
  $profile = $form_state['wysiwyg_profile'];

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