1 filter.module | _filter_disable_format_access($format) |
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
File
- core/
modules/ filter/ filter.module, line 192 - Framework for handling the filtering of content.
Code
function _filter_disable_format_access($format) {
// The fallback format can never be disabled.
return user_access('administer filters') && ($format->format != filter_fallback_format());
}