You are here

protected function HostingDeployForm::addDefaultStrategyOption in Aegir Deploy 7.3

Add default option and make it first.

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

File

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

Class

HostingDeployForm
@file The HostingDeployForm class.

Code

protected function addDefaultStrategyOption() {
  $default = 'none';
  $options = $this->form['field_deployment_strategy'][$this
    ->language()]['#options'];
  $this->form['field_deployment_strategy'][$this
    ->language()]['#options'] = [
    $default => $options[$default],
  ] + $options;
}