You are here

function Notifications_Field::set_value in Notifications 7

Set value for this field, update related properties

File

./notifications.field.inc, line 208
Drupal Notifications Framework - Default class file

Class

Notifications_Field
Base class for Notifications fields

Code

function set_value($value, $validate = FALSE) {
  if (!$validate || $this
    ->valid_value($value)) {
    $this->value = $value;
    $this->name = NULL;
    $this->object = NULL;
    return TRUE;
  }
  else {
    return FALSE;
  }
}