You are here

public function Notifications_Subscription::load_single_instance in Notifications 7

Get single instance form the db

1 call to Notifications_Subscription::load_single_instance()
Notifications_Subscription::get_instance in ./notifications.subscription.inc
Get instance of this one for certain conditions

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

public function load_single_instance($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_single($params, $fields);
}