You are here

public function Notifications_User_Content_Subscription::set_author in Notifications 7

Set author (user).

1 call to Notifications_User_Content_Subscription::set_author()
Notifications_User_Content_Subscription::set_node in notifications_user/notifications_user.inc
Set all the fields we can from node.

File

notifications_user/notifications_user.inc, line 22
User subscriptions for Notifications

Class

Notifications_User_Content_Subscription
Generic content subscription Thread subscription.

Code

public function set_author($user) {
  $uid = is_object($user) ? $user->uid : $user;
  $this
    ->get_field('node:uid')
    ->set_value($uid);
  return $this;
}