You are here

function node_revision_delete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/node.module \node_revision_delete()

Deletes a node revision.

Parameters

$revision_id: The revision ID to delete.

Return value

bool TRUE if the revision deletion was successful; otherwise, FALSE.

1 call to node_revision_delete()
node_user_predelete in core/modules/node/node.module
Implements hook_ENTITY_TYPE_predelete() for user entities.

File

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

Code

function node_revision_delete($revision_id) {
  entity_revision_delete('node', $revision_id);
}