You are here

protected function HostingPlatformComposerForm::setProjectPath in Aegir Deploy 7.3

1 call to HostingPlatformComposerForm::setProjectPath()
HostingPlatformComposerForm::submit in modules/platform_composer/includes/HostingPlatformComposerForm.inc

File

modules/platform_composer/includes/HostingPlatformComposerForm.inc, line 55
The HostingPlatformComposerForm class.

Class

HostingPlatformComposerForm
@file The HostingPlatformComposerForm class.

Code

protected function setProjectPath() {
  if ($this
    ->isANewNode() && !empty($this
    ->getFormStateValue('field_composer_project_package'))) {
    $this
      ->setFormStateValue('field_composer_project_path', $this
      ->getFormStateValue('publish_path'));
  }
}