You are here

function Notifications_Subscription_List::set_user in Notifications 7

Set user to all subscriptions

File

./notifications.list.inc, line 135
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription_List
List of subscriptions or subscription types

Code

function set_user($user) {
  $this->instance_params['uid'] = $user->uid;
  foreach ($this
    ->get_subscriptions() as $subscription) {
    $subscription
      ->set_user($user);
  }
  return $this;
}