function entity_embed_embed_button_load in Entity Embed 7
Same name and namespace in other branches
- 7.3 entity_embed.module \entity_embed_embed_button_load()
- 7.2 entity_embed.module \entity_embed_embed_button_load()
Loads an embed button object from the database.
Parameters
$name: The name of the button to load.
Return value
The loaded button object or FALSE if the button is not found.
1 call to entity_embed_embed_button_load()
- entity_embed_embed_button_save in ./
entity_embed.module - Saves an embed button object to the database.
1 string reference to 'entity_embed_embed_button_load'
- entity_embed_schema in ./
entity_embed.install - Implements hook_schema().
File
- ./
entity_embed.module, line 138 - Provides a CKEditor plugin and text filter for embedding and rendering entities.
Code
function entity_embed_embed_button_load($name) {
ctools_include('export');
$result = ctools_export_load_object('entity_embed', 'names', array(
$name,
));
return isset($result[$name]) ? $result[$name] : FALSE;
}