You are here

entity_embed.commands.inc in Entity Embed 7.3

AJAX commands.

File

includes/entity_embed.commands.inc
View source
<?php

/**
 * @file
 * AJAX commands.
 */

/**
 * Creates a Drupal Ajax 'insert' command that is capable of targeting elements
 * within iFrames.
 *
 * @param string $html
 *   The HTML content that will replace the matched element(s).
 *
 * @return
 *   An array suitable for use with the ajax_render() function.
 */
function entity_embed_command_insert($html) {
  return array(
    'command' => 'entityEmbedInsertEditor',
    'html' => $html,
  );
}

Functions

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