function node_revision_load

Loads a node revision from the database.

Parameters

int $nid: The node revision id.

Return value

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

6 calls to node_revision_load()
FileFieldRevisionTest::testRevisions in drupal/core/modules/file/lib/Drupal/file/Tests/FileFieldRevisionTest.php
Tests creating multiple revisions of a node and managing attached files.
NodeRevisionsTest::testRevisions in drupal/core/modules/node/lib/Drupal/node/Tests/NodeRevisionsTest.php
Checks node revision related operations.
PageEditTest::testPageEdit in drupal/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php
Checks node edit functionality.
UserCancelTest::testUserAnonymize in drupal/core/modules/user/lib/Drupal/user/Tests/UserCancelTest.php
Delete account and anonymize all content.
UserCancelTest::testUserBlockUnpublish in drupal/core/modules/user/lib/Drupal/user/Tests/UserCancelTest.php
Disable account and unpublish all content.

... See full list

File

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

Code

function node_revision_load($vid = NULL) {
  return entity_revision_load('node', $vid);
}