You are here

function notifications_event in Notifications 7

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

Create event object of given type

Usage: notifications_event('node', 'insert');

Parameters

$type: Event type key

$action: Event action

9 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_entity_info in ./notifications.module
Implements hook_entity_info().
Notifications_Event::load in ./notifications.event.inc
Load event by id
Notifications_Event::load_multiple in ./notifications.event.inc
Load multiple events

... See full list

File

./notifications.module, line 727
Notifications module

Code

function notifications_event($type, $action = NULL) {
  $event = Notifications_Event::build_type($type, $action);
  $event->queue = variable_get('notifications_event_queue', 0);
  return $event;
}