You are here

public function HostingPlatformGitForm::__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_git/includes/HostingPlatformGitForm.inc, line 16
The HostingPlatformGitForm class.

Class

HostingPlatformGitForm
@file The HostingPlatformGitForm class.

Code

public function __construct(&$form, &$form_state, &$node = FALSE) {
  parent::__construct($form, $form_state, $node);
  if ($this->node->type == 'platform') {
    $this->platform = new HostingPlatformGitNode($node);
  }
}