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

entity_load()

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.

▾ 9 functions call node_load_multiple()

blog_page_last in modules/blog/blog.pages.inc
Menu callback; displays a Drupal page containing recent blog entries of all users.
blog_page_user in modules/blog/blog.pages.inc
Menu callback; displays a Drupal page containing recent blog entries of a given user.
node_admin_nodes in modules/node/node.admin.inc
Form builder: Builds the node administration overview.
node_delete_multiple in modules/node/node.module
Delete multiple nodes.
node_feed in modules/node/node.module
A generic function for generating RSS feeds from a set of nodes.
node_load in modules/node/node.module
Load a node object from the database.
node_page_default in modules/node/node.module
Menu callback; Generate a listing of promoted nodes.
taxonomy_term_page in modules/taxonomy/taxonomy.pages.inc
Menu callback; displays all nodes associated with a term.
_node_access_rebuild_batch_operation in modules/node/node.module
Batch operation for node_access_rebuild_batch.

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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.