You are here

function deploy_rules_action_deploy_plan in Deploy - Content Staging 7.2

Same name and namespace in other branches
  1. 7.3 deploy.rules.inc \deploy_rules_action_deploy_plan()

Action callback for the "Deploy a plan" action.

File

./deploy.rules.inc, line 80
Rules implementations.

Code

function deploy_rules_action_deploy_plan($plan_name) {
  if ($plan = deploy_manager_plan_load($plan_name)) {
    $plan
      ->deploy();
    return;
  }
  watchdog('deploy', 'Cannot deploy non-managed plan %name', array(
    '%name' => $plan_name,
  ), WATCHDOG_ERROR);
}