You are here

public function Notifications_Node_Event::set_object in Notifications 7

Set main object id when node is added to the event

File

notifications_content/notifications_content.inc, line 74
Drupal Notifications Framework - Default class file

Class

Notifications_Node_Event
Node events

Code

public function set_object($object) {
  if ($object->type == 'node') {
    $this->oid = $object
      ->get_value();
  }
  return parent::set_object($object);
}