You are here

function wysiwyg_profile_delete_confirm in Wysiwyg 5

Same name and namespace in other branches
  1. 5.2 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_admin in ./wysiwyg.admin.inc
Callback handler for admin pages; menu callback.

File

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

Code

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