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.

76 calls to node_load()
BookNavigationBlock::build in drupal/core/modules/book/lib/Drupal/book/Plugin/Block/BookNavigationBlock.php
Builds and returns the renderable array for this block plugin.
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_export_traverse in drupal/core/modules/book/book.module
Traverses the book tree to build printable or exportable output.
book_form_node_delete_confirm_alter in drupal/core/modules/book/book.module
Implements hook_form_FORM_ID_alter() for node_delete_confirm().

... See full list

File

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

Code

function node_load($nid = NULL, $reset = FALSE) {
  $entity = entity_load('node', $nid, $reset);
  return $entity ? $entity
    ->getBCEntity() : FALSE;
}