function wysiwyg_profile_delete_confirm_submit in Wysiwyg 6.2
Same name and namespace in other branches
- 5.2 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm_submit()
- 5 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm_submit()
- 6 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm_submit()
- 7.2 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 831 - Integrate Wysiwyg editors into Drupal.
Code
function wysiwyg_profile_delete_confirm_submit($form, &$form_state) {
$formats = filter_formats();
$format = $formats[$form_state['values']['format']];
wysiwyg_profile_delete($format->format);
drupal_set_message(t('Wysiwyg profile for %name has been deleted.', array(
'%name' => $format->name,
)));
$form_state['redirect'] = 'admin/settings/wysiwyg';
}