Same name and namespace in other branches
  1. 4.6.x modules/node.module \node_show()
  2. 5.x modules/node/node.module \node_show()
  3. 6.x modules/node/node.module \node_show()
  4. 7.x modules/node/node.module \node_show()

Generate a page displaying a single node, along with its comments.

1 call to node_show()
poll_results in modules/poll.module
Callback for the 'results' tab for polls you can vote on

File

modules/node.module, line 582
The core that allows content to be submitted to the site.

Code

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;
}