function nodeblock_preprocess_node in Nodeblock 6
Same name and namespace in other branches
- 7 nodeblock.module \nodeblock_preprocess_node()
Implementation of hook_preprocess_node().
Add node-nodeblock-default to the suggested theme files for all nodeblock enabled nodes. Note that the template is "unshifted" onto the template files array. This gives the template file a lower priority than any node-nodetype templates, but a higher priority than a generic node.tpl.php.
File
- ./
nodeblock.module, line 194 - Enables use of specified node types as custom blocks.
Code
function nodeblock_preprocess_node(&$variables) {
if (!empty($variables['node']->nodeblock)) {
array_unshift($variables['template_files'], 'node-nodeblock-default');
}
}