node_view

function node_view

node_view($node, $view_mode = 'full', $langcode = NULL)

Generates an array for rendering the given node.

Parameters

$node: A node object.

$view_mode: View mode, e.g. 'full', 'teaser'...

$langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request.

Return value

An array as expected by drupal_render().

File

modules/node/node.module, line 1330
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<