function _entity_embed_preview_format_access in Entity Embed 7
Same name and namespace in other branches
- 7.3 entity_embed.module \_entity_embed_preview_format_access()
- 7.2 entity_embed.module \_entity_embed_preview_format_access()
Access callback: Checks access for previewing embedded entities.
Parameters
$format: A text format object.
Return value
TRUE if entities can be previewed for the specified filter format, FALSE otherwise.
See also
1 string reference to '_entity_embed_preview_format_access'
- entity_embed_menu in ./
entity_embed.module - Implements hook_menu().
File
- ./
entity_embed.module, line 291 - Provides a CKEditor plugin and text filter for embedding and rendering entities.
Code
function _entity_embed_preview_format_access($format) {
return user_access('use text format ' . $format->format);
}