You are here

function node_show in Drupal 5

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

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

3 calls to node_show()
node_page_view in modules/node/node.module
Menu callback; view a single node.
node_revisions in modules/node/node.module
Menu callback for revisions related activities.
poll_results in modules/poll/poll.module
Callback for the 'results' tab for polls you can vote on

File

modules/node/node.module, line 817
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

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