public static function Messaging_Destination::validate_address in Messaging 6.4
Same name and namespace in other branches
- 7 messaging.destination.inc \Messaging_Destination::validate_address()
Validate address format
1 call to Messaging_Destination::validate_address()
- Messaging_Destination::validate_type in includes/
messaging_destination.class.inc - Validate values to create a destination
File
- includes/
messaging_destination.class.inc, line 146 - Drupal Messaging Framework - Default class file
Class
- Messaging_Destination
- Message destination class
Code
public static function validate_address($type, $address) {
if (empty($address)) {
// So far, no method takes an address that evaluates to zero
return FALSE;
}
elseif ($callback = messaging_address_info($type, 'validate callback')) {
return call_user_func($callback, $address);
}
else {
return TRUE;
}
}