function Messaging_Send_Method::address_validate in Messaging 6.4
Same name and namespace in other branches
- 7 messaging.method.inc \Messaging_Send_Method::address_validate()
Validate address
File
- includes/
messaging_method.class.inc, line 280 - Drupal Messaging Framework - Send_Method class file
Class
- Messaging_Send_Method
- Sending method, implements all specific method functionality
Code
function address_validate($address) {
if ($function = $this
->get_address_info('validate callback')) {
return $function($address);
}
else {
// The default address will be valid if not empty
return !empty($address);
}
}