function node_show

7.x node.module node_show($node, $message = FALSE)
6.x node.module node_show($node, $cid, $message = FALSE)

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

2 calls to node_show()
node_page_view in drupal-6.x/modules/node/node.module
Menu callback; view a single node.
poll_results in drupal-6.x/modules/poll/poll.pages.inc
Callback for the 'results' tab for polls you can vote on
1 string reference to 'node_show'
node_menu in drupal-6.x/modules/node/node.module
Implementation of hook_menu().

File

drupal-6.x/modules/node/node.module, line 1110
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, $message = FALSE) {
  if ($message) {
    drupal_set_title(t('Revision of %title from %date', array('%title' => $node->title, '%date' => format_date($node->revision_timestamp))));
  }
  $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;
}