You are here

function notifications_queue in Notifications 6.4

Same name and namespace in other branches
  1. 5 notifications.module \notifications_queue()
  2. 6 notifications.module \notifications_queue()
  3. 6.2 notifications.module \notifications_queue()
  4. 6.3 notifications.module \notifications_queue()

Entry point for the storage and queueing API

Default methods are implemented by Notifications_Queue class

This API can be replaced by setting a new class name in the 'notifications_queue' variable.

13 string references to 'notifications_queue'
NotificationsAnonymousTests::testAnonymousSubscriptions in tests/notifications_anonymous.test
NotificationsContentTests::testNotificationsContent in tests/notifications_content.test
Play with creating, retrieving, deleting a pair subscriptions
NotificationsCustomTests::testCustomSubscriptions in tests/notifications_custom.test
NotificationsLiteTests::sendLiteMessages in tests/notifications_lite.test
Helper function to send messages and do queue processing
NotificationsLiteTests::testNotificationsLite in tests/notifications_lite.test
Test simple sending cases

... See full list

File

./notifications.module, line 2069
Notifications module

Code

function notifications_queue() {
  static $queue;
  if (!isset($queue)) {
    $class = variable_get('notifications_queue', 'Notifications_Queue');
    $queue = new $class();
  }

  //return call_user_func_array(array($class, $method), $args);
  return $queue;
}