public function HostingDeployForm::__construct in Aegir Deploy 7.3
Contructor method.
Classes based on HostingForm should be instantiated by passing in $form and $form_state, such as from hook_form_alter(), validate or submit callbacks. These get passed by reference, so that any changes made need not be returned back to the calling function.
Overrides HostingForm::__construct
File
- includes/
HostingDeployForm.inc, line 8 - The HostingDeployForm class.
Class
- HostingDeployForm
- @file The HostingDeployForm class.
Code
public function __construct(&$form, &$form_state, &$node = FALSE) {
parent::__construct($form, $form_state, $node);
if ($this->node->type == 'platform') {
$this->platform = new HostingDeployNode($this->node);
}
}