You are here

function Notifications_Object::subscribe_options in Notifications 7

Get subscription options for object, account. Only enabled subscription types

We pass on the user account so we cah check permissions on the fly and save lots of objects

Return value

Notifications_Subscription_List

1 call to Notifications_Object::subscribe_options()
Notifications_Object::user_subscriptions in ./notifications.object.inc
Get list of possible and existing subscriptions for user/object

File

./notifications.object.inc, line 218
Drupal Notifications Framework - Default class file

Class

Notifications_Object
Wrapper for Drupal objects

Code

function subscribe_options($account) {
  $subscriptions = new Notifications_Subscription_List();
  if ($options = $this
    ->invoke_all('subscriptions', $account)) {
    $subscriptions
      ->add($options);
  }
  return $subscriptions;
}