You are here

function deploy_plan_check in Deploy - Content Staging 6

Run the dependency checking hooks for the specified deployment plan.

Parameters

$pid: Unique ID of the plan to check.

File

./deploy.module, line 729
Deployment API which enables modules to deploy items between servers.

Code

function deploy_plan_check($pid) {

  // Call the dependency-checking hook for each item in the plan.
  // Someday I may want to aggregate each item of a type (node, user, etc)
  // into one array and call a hook once for each module to reduce hook
  // calling overhead. Worthwhile?
  $items = deploy_get_plan_items($pid);
  foreach ($items as $item) {
    deploy_plan_check_item($item['module'], $item['data']);
  }

  // If anyone needs to do any final cleanup now that dependencies are
  // sorted out, feel free.
  module_invoke_all('deploy_check_cleanup', $pid);
}