filter_admin_delete

Versions
4.6 – 6
filter_admin_delete()
7
filter_admin_delete($form, &$form_state, $format)

Menu callback; confirm deletion of a format.

See also

filter_admin_delete_submit()

Related topics

Code

modules/filter/filter.admin.inc, line 217

<?php
function filter_admin_delete($form, &$form_state, $format) {
  $form['#format'] = $format;

  return confirm_form($form,
    t('Are you sure you want to delete the text format %format?', array('%format' => $format->name)),
    'admin/config/content/formats',
    t('If you have any content left in this text format, it will be switched to the %fallback text format. This action cannot be undone.', array('%fallback' => filter_fallback_format_title())),
    t('Delete'),
    t('Cancel')
  );
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.