You are here

function Notifications_Subscription_List::get_stored in Notifications 7

Get only existing subscription instances (stored)

1 call to Notifications_Subscription_List::get_stored()
Notifications_Subscription_List::get_links in ./notifications.list.inc
Get all subscription links

File

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

Class

Notifications_Subscription_List
List of subscriptions or subscription types

Code

function get_stored($stored = TRUE) {
  $result = array();
  foreach ($this
    ->get_instances() as $index => $subscription) {
    if ($subscription
      ->is_stored() == $stored) {
      $result[$index] = $subscription;
    }
  }
  return $result;
}