function notifications_event in Notifications 7
Same name and namespace in other branches
- 5 notifications.module \notifications_event()
- 6.4 notifications.module \notifications_event()
- 6 notifications.module \notifications_event()
- 6.2 notifications.module \notifications_event()
- 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
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;
}