You are here

public function Notifications_Subscription::is_instance in Notifications 7

Check whether this is a subscription instance.

Regular subscription types will be the same as the instance. For more ellaborated subscription types, we can get multiple different instances depending on field values.

2 calls to Notifications_Subscription::is_instance()
Notifications_Subscription::instance in ./notifications.subscription.inc
Get subscription instance.
Notifications_Subscription::is_editable in ./notifications.subscription.inc
Whether this subscription's fields are editable or not

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

public function is_instance() {
  return $this
    ->is_stored() || !empty($this->prepared);
}