function deploy_manager_delete_revision_from_plan in Deploy - Content Staging 7.2
Same name and namespace in other branches
- 7.3 deploy.manager.inc \deploy_manager_delete_revision_from_plan()
Delete a revision from a managed deployment plan.
Parameters
$plan_name: The machine name of the plan to remove from.
$entity_type: The entity type to remove.
$entity: The entity whose revision will be removed from the plan.
1 call to deploy_manager_delete_revision_from_plan()
- deploy_node_revision_delete in ./
deploy.manager.inc - Implements hook_node_revision_delete().
File
- ./
deploy.manager.inc, line 123 - Deploy module functions for handling managed entities in plans.
Code
function deploy_manager_delete_revision_from_plan($plan_name, $entity_type, $entity) {
list($entity_id, $revision_id) = entity_extract_ids($entity_type, $entity);
db_delete('deploy_manager_entities')
->condition('entity_type', $entity_type)
->condition('revision_id', $revision_id)
->condition('plan_name', $plan_name)
->execute();
}