function filter_admin_disable
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
Related topics
1 string reference to 'filter_admin_disable'
- filter_menu in drupal-7.x/
modules/ filter/ filter.module - Implements hook_menu().
File
- drupal-7.x/
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')
);
}