function Notifications_Subscription::check_account in Notifications 7
Same name and namespace in other branches
- 6.4 includes/notifications_subscription.class.inc \Notifications_Subscription::check_account()
Check subscription user account and related parameters
1 call to Notifications_Subscription::check_account()
- 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 1077 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Common base for subscription type and subscription instance
Code
function check_account() {
if (!isset($this->uid)) {
return FALSE;
}
elseif (!isset($this->send_method) || !isset($this->send_interval)) {
return $this
->set_user($this
->get_user());
}
else {
return TRUE;
}
}