You are here

public function Notifications_Message::add_event in Notifications 7

Same name and namespace in other branches
  1. 6.4 includes/notifications_message.class.inc \Notifications_Message::add_event()

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

File

./notifications.message.inc, line 48
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);
}