You are here

public function Notifications_Object::set_value in Notifications 7

Set value (reset object)

File

./notifications.object.inc, line 133
Drupal Notifications Framework - Default class file

Class

Notifications_Object
Wrapper for Drupal objects

Code

public function set_value($value) {
  if (is_object($value)) {
    $this
      ->set_object($value);
  }
  else {
    $this->value = $value;
    $this->object = NULL;
  }
  return $this;
}