You are here

function Notifications_Subscription::check_account in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications.subscription.inc \Notifications_Subscription::check_account()

Check subscription user account and related parameters

File

includes/notifications_subscription.class.inc, line 332
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Message destination class

Code

function check_account() {
  if (!isset($this->uid)) {
    return FALSE;
  }
  elseif (!isset($this->send_method) || !isset($this->send_interval)) {
    return $this
      ->set_account($this
      ->get_user());
  }
  else {
    return TRUE;
  }
}