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