public static function NodeCommentBlock::setComments in Node Comment Block 7.2
Store the comments for a node.
Parameters
\stdClass $node: The node.
1 call to NodeCommentBlock::setComments()
- node_comment_block_node_view in ./
node_comment_block.module - Implements hook_node_view().
File
- includes/
node_comment_block.controller.inc, line 34 - A controller class for Node Comment Block.
Class
- NodeCommentBlock
- Class NodeCommentBlock
Code
public static function setComments(\stdClass $node) {
if (!array_key_exists('comments', $node->content)) {
return;
}
global $_node_comment_block_comments;
$_node_comment_block_comments[$node->nid] = $node->content['comments'];
}