function node_comment_block_node_view in Node Comment Block 7
Same name and namespace in other branches
- 7.2 node_comment_block.module \node_comment_block_node_view()
Implements hook_node_view().
File
- ./
node_comment_block.module, line 66 - Moves the comments for a node into a block.
Code
function node_comment_block_node_view($node, $view_mode) {
// Store the comments in a global variable so that they can be rendered later.
global $_node_comment_block_comments;
$_node_comment_block_comments = isset($node->content['comments']) ? $node->content['comments'] : '';
}