You are here

function wysiwyg_profile_delete_confirm_submit in Wysiwyg 7.2

Same name and namespace in other branches
  1. 5.2 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm_submit()
  2. 5 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm_submit()
  3. 6.2 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm_submit()
  4. 6 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm_submit()

Submit callback for Wysiwyg profile delete form.

See also

wysiwyg_profile_delete_confirm()

File

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

Code

function wysiwyg_profile_delete_confirm_submit($form, &$form_state) {
  $profile = $form_state['wysiwyg_profile'];
  $format = $form_state['format'];
  wysiwyg_profile_delete($profile);
  if (module_exists('admin_menu')) {
    admin_menu_flush_caches();
  }
  drupal_set_message(t('Wysiwyg profile for %name has been deleted.', array(
    '%name' => $format->name,
  )));
  $form_state['redirect'] = 'admin/config/content/wysiwyg';
}