You are here

function deploy_manager_delete_from_plan in Deploy - Content Staging 7.3

Same name and namespace in other branches
  1. 7.2 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()
DeployPlan::emptyPlan in includes/DeployPlan.inc
Flattens a deployment plan by removing duplicated entities.
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.

... See full list

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();
}