function node_load

Loads a node entity from the database.

Parameters

int $nid: The node ID.

bool $reset: (optional) Whether to reset the node_load_multiple() cache. Defaults to FALSE.

Return value

Drupal\node\Node|false A fully-populated node entity, or FALSE if the node is not found.

80 calls to node_load()
BookTest::testBookDelete in drupal/core/modules/book/lib/Drupal/book/Tests/BookTest.php
Tests the access for deleting top-level book nodes.
book_admin_edit_submit in drupal/core/modules/book/book.admin.inc
Form submission handler for book_admin_edit().
book_block_view in drupal/core/modules/book/book.module
Implements hook_block_view().
book_export_html in drupal/core/modules/book/book.pages.inc
Generates HTML for export when invoked by book_export().
book_export_traverse in drupal/core/modules/book/book.module
Traverses the book tree to build printable or exportable output.

... See full list

File

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

Code

function node_load($nid = NULL, $reset = FALSE) {
  return entity_load('node', $nid, $reset);
}