function _filter_disable_format_access

Access callback: Checks access for disabling text formats.

Parameters

$format: A text format object.

Return value

TRUE if the text format can be disabled by the current user, FALSE otherwise.

See also

filter_menu()

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

File

modules/filter/filter.module, line 155

Code

function _filter_disable_format_access($format) {
    // The fallback format can never be disabled.
    return user_access('administer filters') && $format->format != filter_fallback_format();
}

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