node_show
- Versions
- 4.6 – 5
node_show($node, $cid)- 6
node_show($node,$cid, $message = FALSE)- 7
node_show(stdClass $node, $message = FALSE)
Generate a page displaying a single node, along with its comments.
Code
modules/node.module, line 582
<?php
function node_show($node, $cid) {
$output = node_view($node, FALSE, TRUE);
if (function_exists('comment_render') && $node->comment) {
$output .= comment_render($node, $cid);
}
// Update the history table, stating that this user viewed this node.
node_tag_new($node->nid);
return $output;
}
?>Login or register to post comments 