Revision 27e02aed
Added by Assos Assos over 4 years ago
drupal7/modules/node/node.module | ||
---|---|---|
2659 | 2659 |
* An array in the format expected by drupal_render(). |
2660 | 2660 |
*/ |
2661 | 2661 |
function node_view_multiple($nodes, $view_mode = 'teaser', $weight = 0, $langcode = NULL) { |
2662 |
$build = array(); |
|
2662 |
$build = array('nodes' => array());
|
|
2663 | 2663 |
$entities_by_view_mode = entity_view_mode_prepare('node', $nodes, $view_mode, $langcode); |
2664 | 2664 |
foreach ($entities_by_view_mode as $entity_view_mode => $entities) { |
2665 | 2665 |
field_attach_prepare_view('node', $entities, $entity_view_mode, $langcode); |
Also available in: Unified diff
-a