You are here

function notifications_send_immediate in Notifications 6.2

Same name and namespace in other branches
  1. 6.3 notifications.module \notifications_send_immediate()

Store / return events for immediate sending

3 calls to notifications_send_immediate()
notifications_exit in ./notifications.module
Implementation of hook_exit()
notifications_lite_add_to_queue in notifications_lite/notifications_lite.module
Put simple notification into queue
notifications_queue in ./notifications.module
Queue events for notifications adding query conditions from plug-ins
4 string references to 'notifications_send_immediate'
NotificationsContentTests::testNotificationsContent in tests/notifications_content.test
Play with creating, retrieving, deleting a pair subscriptions
notifications_content_nodeapi in notifications_content/notifications_content.module
Implementation of hook_nodeapi()
notifications_settings_form in ./notifications.admin.inc
Admin settings
notifications_update_6001 in ./notifications.install
Multiple fixes

File

./notifications.module, line 509
Notifications module

Code

function notifications_send_immediate($eid = 0) {
  static $events;
  if (!$eid) {
    return $events;
  }
  elseif (variable_get('notifications_send_immediate', 0)) {
    $events[] = $eid;
  }
}