You are here

function Notifications_Event::subscription_types in Notifications 7

Get subscription types triggered by this event

1 call to Notifications_Event::subscription_types()
Notifications_Event::subscriptions_conditions in ./notifications.event.inc
Get subscriptions conditions

File

./notifications.event.inc, line 434
Drupal Notifications Framework - Default class file

Class

Notifications_Event
Notifications Event class

Code

function subscription_types() {

  // Get types from event definition, add types for main object and run hook_notifications_event()
  $types = $this
    ->get_type('subscriptions', array());
  if (($object_type = $this
    ->get_type('object')) && ($object = $this
    ->get_object($object_type))) {
    $types = array_merge($types, $object
      ->subscription_types());
  }
  $types = array_merge($types, $this
    ->invoke_all('subscription types'));
  return array_filter(array_unique($types), 'notifications_subscription_type_enabled');
}