You are here

protected function HostingPlatformGitForm::setPublishPath in Aegir Deploy 7.3

1 call to HostingPlatformGitForm::setPublishPath()
HostingPlatformGitForm::submit in modules/platform_git/includes/HostingPlatformGitForm.inc

File

modules/platform_git/includes/HostingPlatformGitForm.inc, line 51
The HostingPlatformGitForm class.

Class

HostingPlatformGitForm
@file The HostingPlatformGitForm class.

Code

protected function setPublishPath() {
  if (!empty($this
    ->getFormStateValue('field_git_docroot'))) {
    $publish_path = $this
      ->getFormStateValue('field_git_repository_path') . '/' . $this
      ->getFormStateValue('field_git_docroot');
    $this
      ->setFormStateValue('publish_path', $publish_path);
  }
}