function nodeblock_theme_registry_alter in Nodeblock 6
Implementation of hook_theme_registry_alter().
Add nodeblock path to the 'theme paths' for the 'node' hook. This allows us to use node-nodeblock-default.tpl.php from the module directory. Note that the path is "unshifted" onto the theme paths array. This puts the module path before the modules/node path, but since neither of these modules implements the same templates, there is not problem.
File
- ./
nodeblock.module, line 209 - Enables use of specified node types as custom blocks.
Code
function nodeblock_theme_registry_alter(&$registry) {
array_unshift($registry['node']['theme paths'], drupal_get_path('module', 'nodeblock'));
}