You are here

function Notifications_Event::object in Notifications 6.4

Get set event object

File

includes/notifications_event.class.inc, line 172
Drupal Notifications Framework - Default class file

Class

Notifications_Event
Message destination class

Code

function object($type, $object = NULL) {
  if (isset($object)) {
    $this
      ->add_object($type, $object);
  }
  else {
    $this
      ->load_objects();
    return isset($this->objects[$type]) ? $this->objects[$type] : NULL;
  }
}