function entity_embed_filter_format_load in Entity Embed 7.2
Same name and namespace in other branches
- 7.3 entity_embed.module \entity_embed_filter_format_load()
- 7 entity_embed.module \entity_embed_filter_format_load()
Loads a text format object from the database.
Parameters
$format_id: The format ID.
Return value
A fully-populated text format object, if the requested format exists and is enabled. If the format does not exist, or exists in the database but has been marked as disabled, FALSE is returned.
See also
File
- ./
entity_embed.module, line 107 - Provides a CKEditor plugin and text filter for embedding and rendering entities.
Code
function entity_embed_filter_format_load($format_id) {
$formats = filter_formats();
return isset($formats[$format_id]) ? $formats[$format_id] : FALSE;
}