You are here

function Notifications_Subscription::check_destination in Notifications 7

Same name and namespace in other branches
  1. 6.4 includes/notifications_subscription.class.inc \Notifications_Subscription::check_destination()

Check destination (user, method, address, etc...)

1 call to Notifications_Subscription::check_destination()
Notifications_Subscription::check_all in ./notifications.subscription.inc
Check all subscriptions values and set error message if any invalid one

File

./notifications.subscription.inc, line 1091
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

function check_destination() {
  if ($this
    ->get_user()) {
    return !empty($this->send_method);
  }
  else {
    return !empty($this->send_method) && !empty($this->mdid);
  }
}