You are here

function _entity_embed_preview_format_access in Entity Embed 7.2

Same name and namespace in other branches
  1. 7.3 entity_embed.module \_entity_embed_preview_format_access()
  2. 7 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

entity_embed_menu()

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);
}