public function Notifications_Event::prepare in Notifications 7
Prepare event, set default queueing / sending options
1 call to Notifications_Event::prepare()
- Notifications_Event::trigger in ./
notifications.event.inc - Trigger event. Save, run queue query, etc...
File
- ./
notifications.event.inc, line 244 - Drupal Notifications Framework - Default class file
Class
- Notifications_Event
- Notifications Event class
Code
public function prepare() {
if (!isset($this->dispatch)) {
$this->dispatch = variable_get('notifications_event_dispatch', 1);
}
if (!isset($this->queue)) {
$this->queue = $this->dispatch && variable_get('notifications_event_queue', 0);
}
if (!isset($this->send)) {
$this->send = $this->dispatch && !$this->queue;
}
return $this;
}