1 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

File

core/modules/filter/filter.admin.inc, line 774
Admin page callbacks for the Filter module.

Code

function filter_admin_disable($form, &$form_state, $format) {
  $form_state['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('Any content stored with that format may not be rendered properly.'), 
  t('Disable')
  );
}