You are here

public function Notifications_Subscription::instance in Notifications 7

Get subscription instance.

This will be the same object for regular subscriptions. More complex subscriptins can be able to produce multiple types depending on parameters.

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

public function instance() {
  if (!$this
    ->is_instance()) {
    $this
      ->invoke_all('prepare');
    $this->prepared = TRUE;
  }
  return $this;
}