You are here

public function HostingForm::setFormStateValue in Aegir Objects 7.3

File

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

Class

HostingForm
@file The HostingForm class.

Code

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