You are here

protected function HostingDeployForm::setStrategy in Aegir Deploy 7.3

1 call to HostingDeployForm::setStrategy()
HostingDeployForm::alter in includes/HostingDeployForm.inc

File

includes/HostingDeployForm.inc, line 41
The HostingDeployForm class.

Class

HostingDeployForm
@file The HostingDeployForm class.

Code

protected function setStrategy() {
  if ($this
    ->isANewNode()) {
    $this
      ->setFormDefaultValue('field_deployment_strategy', 'none');
  }
  else {
    $this
      ->setFormDefaultValue('field_deployment_strategy', $this
      ->determineExistingStrategy());
  }
}