You are here

function views_bulk_operations_delete_revision in Views Bulk Operations (VBO) 7.3

File

actions/delete.action.inc, line 69
Implements a generic entity delete action. Uses Entity API if available.

Code

function views_bulk_operations_delete_revision($entity, $context) {
  $info = entity_get_info($context['entity_type']);
  $revision_id = $entity->{$info['entity keys']['revision']};
  entity_revision_delete($context['entity_type'], $revision_id);
}