public function HostingPlatformComposerForm::__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
- modules/
platform_composer/ includes/ HostingPlatformComposerForm.inc, line 16 - The HostingPlatformComposerForm class.
Class
- HostingPlatformComposerForm
- @file The HostingPlatformComposerForm class.
Code
public function __construct(&$form, &$form_state, &$node = FALSE) {
parent::__construct($form, $form_state, $node);
if ($this->node->type == 'platform') {
$this->platform = new HostingPlatformComposerNode($node);
}
}