You are here

function Notifications_Subscription_List::add_subscription in Notifications 7

Add single subscription

1 call to Notifications_Subscription_List::add_subscription()
Notifications_Subscription_List::add in ./notifications.list.inc
Add subscription/s to the list

File

./notifications.list.inc, line 74
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription_List
List of subscriptions or subscription types

Code

function add_subscription($subscription) {
  $this->index++;
  $this->subscriptions[$this->index] = $subscription;
  return $this;
}