function node_embed_theme_registry_alter in Node Embed 7
Implements hook_theme_registry_alter().
This is where we add our default template for the fckeditor view page template.
File
- ./
node_embed.module, line 170 - 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_theme_registry_alter(&$theme_registry) {
// Add 'html--ckeditor-node-embed.tpl.php' template file
$theme_registry['html__ckeditor_node_embed'] = array();
$theme_registry['html__ckeditor_node_embed']['template'] = 'html--ckeditor-node-embed';
$theme_registry['html__ckeditor_node_embed']['path'] = drupal_get_path('module', 'node_embed') . "/theme";
$theme_registry['html__ckeditor_node_embed']['render element'] = 'page';
$theme_registry['html__ckeditor_node_embed']['base hook'] = 'html';
$theme_registry['html__ckeditor_node_embed']['type'] = 'theme_engine';
$theme_registry['html__ckeditor_node_embed']['theme path'] = path_to_theme();
$theme_registry['html__ckeditor_node_embed']['preprocess functions'] = array();
$theme_registry['html__ckeditor_node_embed']['process functions'] = array();
// Add 'page--ckeditor-node-embed.tpl.php' template file
$theme_registry['page__ckeditor_node_embed'] = array();
$theme_registry['page__ckeditor_node_embed']['template'] = 'page--ckeditor-node-embed';
$theme_registry['page__ckeditor_node_embed']['path'] = drupal_get_path('module', 'node_embed') . "/theme";
$theme_registry['page__ckeditor_node_embed']['render element'] = 'page';
$theme_registry['page__ckeditor_node_embed']['base hook'] = 'page';
$theme_registry['page__ckeditor_node_embed']['type'] = 'theme_engine';
$theme_registry['page__ckeditor_node_embed']['theme path'] = path_to_theme();
$theme_registry['page__ckeditor_node_embed']['preprocess functions'] = array();
$theme_registry['page__ckeditor_node_embed']['process functions'] = array();
}