You are here

public function DeployPlan::emptyPlan in Deploy - Content Staging 7.3

Flattens a deployment plan by removing duplicated entities.

File

includes/DeployPlan.inc, line 211
Definition of a deployment plan and associated exceptions.

Class

DeployPlan
Class representing a deployment plan.

Code

public function emptyPlan() {
  $entity_keys = $this
    ->getEntities();
  foreach ($entity_keys as $entity_key) {
    $entity = entity_load_single($entity_key['type'], $entity_key['id']);
    deploy_manager_delete_from_plan($this->name, $entity_key['type'], $entity);
  }
  return TRUE;
}