filter_admin_disable

7 filter.admin.inc filter_admin_disable($form, &$form_state, $format)
8 filter.admin.inc filter_admin_disable($form, &$form_state, $format)

Menu callback; confirm deletion of a format.

See also

filter_admin_disable_submit()

Related topics

1 string reference to 'filter_admin_disable'

File

modules/filter/filter.admin.inc, line 344
Admin page callbacks for the filter module.

Code

function filter_admin_disable($form, &$form_state, $format) {
  $form['#format'] = $format;

  return confirm_form($form, 
    t('Are you sure you want to disable the text format %format?', array('%format' => $format->name)), 
    'admin/config/content/formats', 
    t('Disabled text formats are completely removed from the administrative interface, and any content stored with that format will not be displayed. This action cannot be undone.'), 
    t('Disable')
  );
}
Login or register to post comments