You are here

function Notifications_Scheduler_Event::query_subscriptions in Notifications 7

Build query for subscriptions that match this event type

File

notifications_scheduler/notifications_scheduler.inc, line 148
Drupal Notifications Framework - Default class file

Class

Notifications_Scheduler_Event
Notifications Schedule Event class

Code

function query_subscriptions() {

  // This is the condition for scheduled notifications
  return db_select('notifications_subscription', 's')
    ->condition('s.status', Notifications_Subscription::STATUS_ACTIVE)
    ->condition('s.send_interval', -1);
}