function node_load

cis7 node.module node_load($nid = NULL, $vid = NULL, $reset = FALSE)
cle7 node.module node_load($nid = NULL, $vid = NULL, $reset = FALSE)
elmsmedia7 node.module node_load($nid = NULL, $vid = NULL, $reset = FALSE)
icor7 node.module node_load($nid = NULL, $vid = NULL, $reset = FALSE)
meedjum_blog7 node.module node_load($nid = NULL, $vid = NULL, $reset = FALSE)
mooc7 node.module node_load($nid = NULL, $vid = NULL, $reset = FALSE)

Loads a node object from the database.

Parameters

$nid: The node ID.

$vid: The revision ID.

$reset: Whether to reset the node_load_multiple cache.

Return value

A fully-populated node object, or FALSE if the node is not found.

116 calls to node_load()
auto_nodetitle_operations_update in sites/all/modules/ulmus/auto_nodetitle/auto_nodetitle.module
Callback function for updating node titles.
book_admin_edit_submit in modules/book/book.admin.inc
Form submission handler for book_admin_edit().
book_block_view in modules/book/book.module
Implements hook_block_view().
book_copy_book_process_book_copy in sites/all/modules/elmsln_contrib/book_copy/book_copy.module
Callback for book_copy ajax call from outline designer.
book_copy_copy in sites/all/modules/elmsln_contrib/book_copy/book_copy.module
Callback for replicating a book outline below a passed node.

... See full list

1 string reference to 'node_load'
httprl.examples.php in sites/all/modules/ulmus/httprl/examples/httprl.examples.php
HTTP Parallel Request Library code examples.

File

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

function node_load($nid = NULL, $vid = NULL, $reset = FALSE) {
  $nids = (isset($nid) ? array($nid) : array());
  $conditions = (isset($vid) ? array('vid' => $vid) : array());
  $node = node_load_multiple($nids, $conditions, $reset);
  return $node ? reset($node) : FALSE;
}