You are here

function entity_embed_embed_button_new in Entity Embed 7

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

Creates a new embed button object.

Parameters

$set_defaults: If TRUE, which is the default, then default values will be retrieved from schema fields and set on the object.

Return value

An embed button object populated with default values.

1 call to entity_embed_embed_button_new()
IconFileUsageTest::testEmbedButtonIcon in ./entity_embed.test
Tests the embed_button and file usage integration.
1 string reference to 'entity_embed_embed_button_new'
entity_embed_schema in ./entity_embed.install
Implements hook_schema().

File

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

Code

function entity_embed_embed_button_new($set_defaults = TRUE) {
  ctools_include('export');
  return ctools_export_new_object('entity_embed', $set_defaults);
}