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

Form constructor for the text format deletion confirmation form.

Parameters

$format: An object representing a text format.

See also

filter_menu()

filter_admin_disable_submit()

Related topics

1 string reference to 'filter_admin_disable'
filter_menu in modules/filter/filter.module
Implements hook_menu().

File

modules/filter/filter.admin.inc, line 388
Administrative 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')
  );
}