You are here

function _entity_embed_render_placeholders_tips in Entity Embed 7.2

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

Implements callback_filter_tips().

Provides help for the entity embed's render placeholder filter.

1 string reference to '_entity_embed_render_placeholders_tips'
entity_embed_filter_info in ./entity_embed.module
Implements hook_filter_info().

File

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

Code

function _entity_embed_render_placeholders_tips($filter, $format, $long = FALSE) {
  if ($long) {
    return t('
        <p>You can embed entities. Additional properties can be added to the embed tag like data-caption and data-align if supported. Examples:</p>
        <ul>
          <li>Embed by ID: <code>&lt;drupal-entity data-entity-type="node" data-entity-id="1" data-view-mode="teaser" /&gt;</code></li>
          <li>Embed by UUID: <code>&lt;drupal-entity data-entity-type="node" data-entity-uuid="07bf3a2e-1941-4a44-9b02-2d1d7a41ec0e" data-view-mode="teaser" /&gt;</code></li>
        </ul>');
  }
  else {
    return t('You can embed entities.');
  }
}