You are here

public function HostingForm::getFormStateValue in Aegir Objects 7.3

File

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

Class

HostingForm
@file The HostingForm class.

Code

public function getFormStateValue($field, $index = 0) {
  if ($this
    ->isAField($field)) {
    return $this->form_state['values'][$field][$this
      ->language()][$index]['value'];
  }
  else {
    return $this->form_state['values'][$field];
  }
}