node_show

Definition

node_show($node, $cid, $message = FALSE)
modules/node/node.module, line 1092

Description

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

Code

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

Drupal is a registered trademark of Dries Buytaert.