You are here

protected function HostingPlatformComposerGitForm::setProjectPath in Aegir Deploy 7.3

1 call to HostingPlatformComposerGitForm::setProjectPath()
HostingPlatformComposerGitForm::submit in modules/platform_composer_git/includes/HostingPlatformComposerGitForm.inc

File

modules/platform_composer_git/includes/HostingPlatformComposerGitForm.inc, line 55
The HostingPlatformComposerGitForm class.

Class

HostingPlatformComposerGitForm
@file The HostingPlatformComposerGitForm class.

Code

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