You are here

public function Notifications_Subscription::load_instances in Notifications 7

Get all existing instances form the db

File

./notifications.subscription.inc, line 160
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

public function load_instances($params) {
  $params += array(
    'type' => $this->type,
  );

  // Add all the fields that have a value set (type and instance fields)
  $fields = $this
    ->get_fields(TRUE);
  return $this
    ->load_multiple($params, $fields);
}