function node_show

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

Generates an array which displays a node detail page.


$node: A node object.

$message: A flag which sets a page title relevant to the revision being viewed.

Return value

A $page element suitable for use by drupal_render().

2 calls to node_show()
node_page_view in drupal/modules/node/node.module
Menu callback: Displays a single node.
poll_results in drupal/modules/poll/
Callback for the 'results' tab for polls you can vote on
3 string references to 'node_show'
drupal-6.bare.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.bare.database.php
Bare installation of Drupal 6.17, for test purposes.
drupal-6.filled.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
node_menu in drupal/modules/node/node.module
Implements hook_menu().


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


function node_show($node, $message = FALSE) {
  if ($message) {
    drupal_set_title(t('Revision of %title from %date', array('%title' => $node->title, '%date' => format_date($node->revision_timestamp))), PASS_THROUGH);

  // For markup consistency with other pages, use node_view_multiple() rather than node_view().
  $nodes = node_view_multiple(array($node->nid => $node), 'full');

  // Update the history table, stating that this user viewed this node.

  return $nodes;