You are here

protected function HostingPlatformComposerForm::lockFields in Aegir Deploy 7.3

1 call to HostingPlatformComposerForm::lockFields()
HostingPlatformComposerForm::alter in modules/platform_composer/includes/HostingPlatformComposerForm.inc

File

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

Class

HostingPlatformComposerForm
@file The HostingPlatformComposerForm class.

Code

protected function lockFields() {
  if (isset($this->node->platform_status) && $this->node->platform_status != HOSTING_PLATFORM_QUEUED) {
    foreach ($this->fields as $field) {
      $this
        ->makeFieldReadOnly($field);
    }
  }
}