You are here

public function Notifications_Event::dispatch in Notifications 7

Dispatch event to where it corresponds

1 call to Notifications_Event::dispatch()
Notifications_Event::trigger in ./notifications.event.inc
Trigger event. Save, run queue query, etc...

File

./notifications.event.inc, line 259
Drupal Notifications Framework - Default class file

Class

Notifications_Event
Notifications Event class

Code

public function dispatch() {

  // Send event to queue for subscriptions, unless marked not to
  if ($this->queue) {
    return $this
      ->queue();
  }
  elseif ($this->send) {
    return $this
      ->send();
  }
  else {

    // Not for queue nor for sending, just do nothing
    return FALSE;
  }
}