You are here

function Notifications_Subscription_List::build_instances in Notifications 7

Build instances for all with given parameters

@todo Handle multiple instances with the same parameters

File

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

Class

Notifications_Subscription_List
List of subscriptions or subscription types

Code

function build_instances($params = array()) {
  $this->instance_params = $params;
  foreach ($this->subscriptions as $index => $subscription) {
    if ($instance = $subscription
      ->get_instance($params)) {
      $this->subscriptions[$index] = $instance;
    }
  }
}