function _filter_disable_format_access

_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

filter_menu()

File

modules/filter/filter.module, line 155
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());
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!filter!filter.module/function/_filter_disable_format_access/7.x