function deploy_manager_delete_from_plan in Deploy - Content Staging 7.2
Same name and namespace in other branches
- 7.3 deploy.manager.inc \deploy_manager_delete_from_plan()
Delete an entity from a managed deployment plan.
Parameters
$plan_name: The machine name of the plan to remove from.
$entity_id: The id of the entity to be removed from the plan.
6 calls to deploy_manager_delete_from_plan()
- deploy_adhoc_plan_manager_action_delete_from_plan in modules/
deploy_adhoc_plan/ deploy_adhoc_plan.rules.inc - Action callback for the "Remove from ad hoc deploy plan" action.
- deploy_entity_delete in ./
deploy.manager.inc - Implements hook_entity_delete().
- deploy_manager_action_delete_from_plan in ./
deploy.rules.inc - Action callback for the "Remove from deploy plan" action.
- deploy_manager_postprocess_operation in ./
deploy.manager.inc - Postprocess operation callback.
- deploy_node_operation_delete_from_managed_plan in ./
deploy.core.inc - Node operation callback.
File
- ./
deploy.manager.inc, line 141 - Deploy module functions for handling managed entities in plans.
Code
function deploy_manager_delete_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('entity_id', $entity_id)
->condition('plan_name', $plan_name)
->execute();
}