You are here

function entity_embed_embed_button_load_multiple in Entity Embed 7.2

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

Loads multiple embed button objects from the database.

Parameters

$names: An array of button names to load.

Return value

An array of loaded button objects.

1 string reference to 'entity_embed_embed_button_load_multiple'
entity_embed_schema in ./entity_embed.install
Implements hook_schema().

File

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

Code

function entity_embed_embed_button_load_multiple(array $names) {
  ctools_include('export');
  $results = ctools_export_load_object('entity_embed', 'names', $names);

  // Ensure no empty results are returned.
  return array_filter($results);
}