function node_view_multiple

Constructs a drupal_render() style array from an array of loaded nodes.

Parameters

$nodes: An array of nodes as returned by node_load_multiple().

$view_mode: (optional) View mode, e.g., 'full', 'teaser'... Defaults to 'teaser.'

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

Return value

An array in the format expected by drupal_render().

3 calls to node_view_multiple()
node_page_default in drupal/core/modules/node/node.module
Page callback: Generates a listing of promoted nodes.
node_show in drupal/core/modules/node/node.module
Page callback: Generates an array which displays a node detail page.
taxonomy_term_page in drupal/core/modules/taxonomy/taxonomy.pages.inc
Menu callback; displays all nodes associated with a term.

File

drupal/core/modules/node/node.module, line 2320
The core module that allows content to be submitted to the site.

Code

function node_view_multiple($nodes, $view_mode = 'teaser', $langcode = NULL) {
  return entity_view_multiple($nodes, $view_mode, $langcode);
}