function editor_format_access in Editor 7
Checks a user's access to a particular text format.
Parameters
object $format: A text format object.
Return value
bool TRUE if the text format can be used by the current user, FALSE otherwise.
1 string reference to 'editor_format_access'
- editor_ckeditor_menu in modules/
editor_ckeditor/ editor_ckeditor.module - Implements hook_menu().
File
- ./
editor.module, line 639 - Allows rich text fields to be edited using WYSIWYG client-side editors.
Code
function editor_format_access($format) {
$permission = filter_permission_name($format);
return $format->format === filter_fallback_format() || user_access($permission);
}