function node_revision_delete

Deletes a node revision.

Parameters

$revision_id: The revision ID to delete.

Return value

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

2 calls to node_revision_delete()
node_revision_delete_confirm_submit in drupal/core/modules/node/node.pages.inc
Form submission handler for node_revision_delete_confirm().
node_user_predelete in drupal/core/modules/node/node.module
Implements hook_user_predelete().

File

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