You are here

public function HostingForm::makeFieldReadOnly in Aegir Objects 7.3

Render a form field un-editable.

File

classes/HostingForm.inc, line 61
The HostingForm class.

Class

HostingForm
@file The HostingForm class.

Code

public function makeFieldReadOnly($field) {
  $this->form[$field]['#disabled'] = TRUE;
}