You are here

public function Notifications_Message::add_subscriptions in Notifications 7

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

Add subscriptions

1 call to Notifications_Message::add_subscriptions()
Notifications_Message::add_event in ./notifications.message.inc
Add event to the message. One message can be produced by one or more events.

File

./notifications.message.inc, line 57
Drupal Notifications Framework - Default class file

Class

Notifications_Message
Wrapper for Notifications messages

Code

public function add_subscriptions($subscriptions) {
  foreach ($subscriptions as $sid) {
    if (!isset($this->subscriptions[$sid])) {
      $this->subscriptions[$sid] = $sid;
    }
  }
}