function cpn_ctools_render_alter in Code per Node 6
Same name and namespace in other branches
- 7 cpn.module \cpn_ctools_render_alter()
Implements hook_ctools_render_alter().
File
- ./
cpn.module, line 482 - Primary hook implementations.
Code
function cpn_ctools_render_alter(&$info, $page, $args, $contexts, $task, $subtask, $handler) {
// Only work with node views.
if ($task['name'] == 'node_view') {
// Get the node data.
if (isset($contexts['argument_nid_1']) && isset($contexts['argument_nid_1']->data)) {
// Pass the node to hook_nodeapi.
cpn_nodeapi($contexts['argument_nid_1']->data, 'view', FALSE, TRUE);
}
}
}