You are here

public function Notifications_Message::add_event in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications.message.inc \Notifications_Message::add_event()

Add event to the message. One message can be produced by one or more events.

File

includes/notifications_message.class.inc, line 50
Drupal Notifications Framework - Default class file

Class

Notifications_Message
Wrapper for Notifications messages

Code

public function add_event($event, $subscriptions = array()) {
  $this->events[$event->eid] = $event;
  $this->events_subscriptions[$event->eid] = $subscriptions;
  $this
    ->add_subscriptions($subscriptions);
}