function entity_embed_help in Entity Embed 7
Same name and namespace in other branches
- 8 entity_embed.module \entity_embed_help()
- 7.3 entity_embed.module \entity_embed_help()
- 7.2 entity_embed.module \entity_embed_help()
Implements hook_help().
File
- ./
entity_embed.module, line 73 - Provides a CKEditor plugin and text filter for embedding and rendering entities.
Code
function entity_embed_help($path, $arg) {
switch ($path) {
case 'admin/help#entity_embed':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Drupal represents content as different types of entities: nodes, files, users, taxonomy terms, etc. Entity Embed allows entities to be embedded in other entities, for example an image (file entity) may be embedded within a page (node entity). Users embed entities via WYSIWYG through one or more buttons. A button to embed content (nodes) is provided by default but additional buttons can be configured on the <a href="@entity_embed">Entity Embed administration page</a>.', array(
'@entity_embed' => url('admin/config/content/embed-button'),
)) . '</p>';
$output .= '<h3>' . t('Configuration') . '</h3>';
$output .= '<ol>';
$output .= '<li>' . t('Configure the jQuery Update module to use jQuery 1.7 or higher by visiting the <a href="@jquery_update">jQuery Update configuration page</a>.', array(
'@jquery_update' => url('admin/config/development/jquery_update'),
)) . '</li>';
$output .= '<li>' . t('Enable the entity-embed filter <em>Display embedded entities</em> for the desired text formats from the <a href="@filter">Text Formats configuration page</a>.', array(
'@filter' => url('admin/config/content/formats'),
)) . '</li>';
$output .= '<li>' . t('If the <em>Limit allowed HTML tags</em> filter is enabled, add <code><drupal-entity></code> to the <em>Allowed HTML tags</em>') . '</li>';
$output .= '<li>' . t('Optionally enable the filter-align filter <em>Align embedded entities</em> to allow positioning of embedded entities.') . '</li>';
$output .= '<li>' . t('To enable the WYSIWYG plugin, move the entity-embed <code>E</code> button into the Active toolbar for the desired text formats from the <a href="@ckeditor">CKEditor configuration page</a>.', array(
'@ckeditor' => url('admin/config/content/ckeditor'),
)) . '</li>';
$output .= '</ol>';
return $output;
case 'admin/config/content/embed-button':
return '<p>' . t("Embed buttons define the buttons that can be added to CKEditor's toolbar. All buttons correspond to the selcted entity type, although a particular entity type can have more than one button. After you've created the desired buttons, go to <a href='@ckeditor'>CKEditor configuration</a> page to add them to CKEditor's toolbar for the desired text formats.", array(
'@ckeditor' => url('admin/config/content/ckeditor'),
)) . '</p>';
}
}