Commit 0d1fb1be authored by alexpott's avatar alexpott

Issue #2737743 by anoopjohn, Mile23: node_revision_delete() not returning bool in node.module

parent 4cff4e27
......@@ -463,14 +463,11 @@ function node_revision_load($vid = NULL) {
/**
* Deletes a node revision.
*
* @param $revision_id
* @param int $revision_id
* The revision ID to delete.
*
* @return bool
* TRUE if the revision deletion was successful; otherwise, FALSE.
*/
function node_revision_delete($revision_id) {
entity_revision_delete('node', $revision_id);
\Drupal::entityTypeManager()->getStorage('node')->deleteRevision($revision_id);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment