You are here

function Notifications_Field::set_subscription in Notifications 7

Set subscription

File

./notifications.field.inc, line 250
Drupal Notifications Framework - Default class file

Class

Notifications_Field
Base class for Notifications fields

Code

function set_subscription($subscription) {
  $this->subscription = $subscription;
  $this->sid = !empty($subscription->sid) ? $subscription->sid : NULL;
}