You are here

public function HostingFieldable::setFieldValue in Aegir Objects 7.3

Set the value of a field.

File

traits/HostingFieldable.inc, line 46
The HostingFieldable trait.

Class

HostingFieldable
@file The HostingFieldable trait.

Code

public function setFieldValue($field, $value) {
  return $this->node->{$field}[$this->node->language][0]['value'] = $value;
}