You are here

function entity_embed_command_insert in Entity Embed 7.2

Same name and namespace in other branches
  1. 7.3 includes/entity_embed.commands.inc \entity_embed_command_insert()
  2. 7 includes/entity_embed.commands.inc \entity_embed_command_insert()

Creates a Drupal Ajax 'insert' command that is capable of targeting elements within iFrames.

Parameters

string $html: The HTML content that will replace the matched element(s).

Return value

An array suitable for use with the ajax_render() function.

1 call to entity_embed_command_insert()
entity_embed_preview in ./entity_embed.module
Returns an Ajax response to generate preview of an entity.

File

includes/entity_embed.commands.inc, line 18
AJAX commands.

Code

function entity_embed_command_insert($html) {
  return array(
    'command' => 'entityEmbedInsertEditor',
    'html' => $html,
  );
}