You are here

function notifications_event in Notifications 6.4

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

Pass on event to queue processing and run it to the end

Parameters

$event: Array with event parameters

$objects: Array of event objects (type => $object)

2 calls to notifications_event()
notifications_content_comment in notifications_content/notifications_content.module
Implementation of hook_comment().
notifications_content_nodeapi in notifications_content/notifications_content.module
Implementation of hook_nodeapi()
4 string references to 'notifications_event'
NotificationsContentTests::testNotificationsContent in tests/notifications_content.test
Play with creating, retrieving, deleting a pair subscriptions
NotificationsLiteTests::testNotificationsLite in tests/notifications_lite.test
Test simple sending cases
notifications_update_6002 in ./notifications.install
Add some fields
notifications_update_6012 in ./notifications.install
Add event type key

File

./notifications.module, line 583
Notifications module

Code

function notifications_event($event, $objects = array()) {
  if (is_array($event)) {
    $event = Notifications_Event::create($event, $objects);
  }
  if ($event->save || $event->queue) {
    $event
      ->trigger();
  }
  return $event;
}