You are here

function notifications_object_page_subscriptions in Notifications 6.4

Build subscriptions for current user to an array of objects

1 call to notifications_object_page_subscriptions()
notifications_ui_page_options in notifications_ui/notifications_ui.module
Get subscription options for current page/user and a display type

File

includes/object.inc, line 431
Notifications object and fields

Code

function notifications_object_page_subscriptions($objects) {
  global $user;
  $subscriptions = array();
  foreach ($objects as $type => $object) {
    if ($more = notifications_object_user_subscriptions($type, $object, $user)) {
      $subscriptions = array_merge($subscriptions, $more);
    }
  }
  return $subscriptions;
}