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.

7 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.
NodeRevisionsAllTestCase::testRevisions in drupal/core/modules/node/lib/Drupal/node/Tests/NodeRevisionsAllTestCase.php
Checks node revision operations.
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.

... See full list

File

drupal/core/modules/node/node.module, line 948
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);
}