function node_embed_entity_info_alter in Node Embed 7
Implements hook_entity_info_alter().
File
- ./
node_embed.module, line 280 - This module defines an input filter for taking an embed code syntax ([[nid: ###]]) and removing the embed code and replacing with a rendered node view at that position in the text field.
Code
function node_embed_entity_info_alter(&$entity_info) {
if (isset($entity_info['node'])) {
$entity_info['node']['view modes'] += array(
'node_embed' => array(
'label' => 'Node embed',
'custom settings' => FALSE,
),
);
}
}