You are here

function entity_embed_embed_button_load_all in Entity Embed 7.3

Same name and namespace in other branches
  1. 7 entity_embed.module \entity_embed_embed_button_load_all()
  2. 7.2 entity_embed.module \entity_embed_embed_button_load_all()

Load all embed button objects from the database.

Parameters

$reset: If TRUE, the static cache of all objects will be flushed prior to loading all. This can be important on listing pages where items might have changed on the page load.

Return value

An array of all loaded embed button objects, keyed by the unique IDs of the export key.

2 calls to entity_embed_embed_button_load_all()
entity_embed_editor_ckeditor_plugins in ./entity_embed.editor_ckeditor.inc
Implements hook_editor_ckeditor_plugins().
_entity_embed_entity_embed_js_settings in ./entity_embed.module
Implements callback_filter_js_settings().
1 string reference to 'entity_embed_embed_button_load_all'
entity_embed_schema in ./entity_embed.install
Implements hook_schema().

File

./entity_embed.module, line 173
Provides a CKEditor plugin and text filter for embedding and rendering entities.

Code

function entity_embed_embed_button_load_all($reset = FALSE) {
  ctools_include('export');
  if ($reset) {
    ctools_export_load_object_reset('entity_embed');
  }
  return ctools_export_load_object('entity_embed', 'all');
}