function wysiwyg_profile_delete_confirm in Wysiwyg 7.2
Same name and namespace in other branches
- 5.2 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm()
- 5 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm()
- 6.2 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm()
- 6 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm()
Delete editor profile confirmation form.
1 string reference to 'wysiwyg_profile_delete_confirm'
- wysiwyg_menu in ./
wysiwyg.module - Implementation of hook_menu().
File
- ./
wysiwyg.admin.inc, line 814 - Integrate Wysiwyg editors into Drupal.
Code
function wysiwyg_profile_delete_confirm($form, &$form_state, $profile) {
$formats = filter_formats();
$format = $formats[$profile->format];
$form_state['wysiwyg_profile'] = $profile;
$form_state['format'] = $formats[$profile->format];
return confirm_form($form, t('Are you sure you want to remove the profile for %name?', array(
'%name' => $format->name,
)), 'admin/config/content/wysiwyg', t('This action cannot be undone.'), t('Remove'), t('Cancel'));
}