function Notifications_Subscription::check_all in Notifications 7
Check all subscriptions values and set error message if any invalid one
Return value
boolean TRUE if everything is ok
File
- ./
notifications.subscription.inc, line 1057 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Common base for subscription type and subscription instance
Code
function check_all() {
if (!$this
->check_account()) {
$this->error_message = t('Invalid user account for this subscription.');
return FALSE;
}
elseif (!$this
->check_fields()) {
$this->error_message = t('Invalid field values for this subscription.');
return FALSE;
}
elseif (!$this
->check_destination()) {
$this->error_message = t('The destination method or address for the subscription is not valid.');
return FALSE;
}
else {
return TRUE;
}
}