public function Notifications_Event::query_subscriptions in Notifications 7
Build query for subscriptions that match this event type
File
- ./
notifications.event.inc, line 405 - Drupal Notifications Framework - Default class file
Class
- Notifications_Event
- Notifications Event class
Code
public function query_subscriptions() {
// For regular events, time interval must be >= 0
$query = db_select('notifications_subscription', 's')
->condition('s.status', Notifications_Subscription::STATUS_ACTIVE)
->condition('s.send_interval', 0, '>=');
// Maybe we don't need to notify the user who produced this
if ($this->uid && !variable_get('notifications_sendself', 1)) {
$query
->condition('s.uid', $this->uid, '<>');
}
return $query;
}