You are here

function wysiwyg_profile_delete_confirm in Wysiwyg 5.2

Same name and namespace in other branches
  1. 5 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm()
  2. 6.2 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm()
  3. 6 wysiwyg.admin.inc \wysiwyg_profile_delete_confirm()
  4. 7.2 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 511
Integrate Wysiwyg editors into Drupal.

Code

function wysiwyg_profile_delete_confirm($profile) {
  $formats = filter_formats();
  $format = $formats[$profile->format];
  $form['format'] = array(
    '#type' => 'value',
    '#value' => $format,
  );
  return confirm_form($form, t('Are you sure you want to remove the profile for %name?', array(
    '%name' => $format->name,
  )), 'admin/settings/wysiwyg', t('This action cannot be undone.'), t('Remove'), t('Cancel'));
}