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