You are here

function Notifications_Node_Author_Field::get_object in Notifications 7

Get object.

Overrides Notifications_Field::get_object

File

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

Class

Notifications_Node_Author_Field
Class Notifications_Node_Author_Field.

Code

function get_object() {
  $node = node_load($this->value);
  $uid = isset($node->uid) ? $node->uid : NULL;
  return notifications_object('user', $uid);
}