1 filter.module | filter_format_access($format) |
Access callback: Checks a user's access to a particular text format.
Parameters
$format: A text format object.
Return value
TRUE if the text format can be used by the current user, FALSE otherwise.:
See also
File
- core/
modules/ filter/ filter.module, line 175 - Framework for handling the filtering of content.
Code
function filter_format_access($format) {
$permission = filter_permission_name($format);
return ($format->format === filter_fallback_format()) || user_access($permission);
}