node_load_multiple
- Versions
- 7
node_load_multiple($nids = array(), $conditions = array(), $reset = FALSE)
Load node entities from the database.
This function should be used whenever you need to load more than one node from the database. Nodes are loaded into memory and will not require database access if loaded again during the same page request.
See also
Parameters
$nids An array of node IDs.
$conditions An array of conditions on the {node} table in the form 'field' => $value.
$reset Whether to reset the internal node_load cache.
Return value
An array of node objects indexed by nid.
Code
modules/node/node.module, line 852
<?php
function node_load_multiple($nids = array(), $conditions = array(), $reset = FALSE) {
return entity_load('node', $nids, $conditions, $reset);
}
?>Login or register to post comments 