function filter_admin_disable

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

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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.