function Messaging_Message::check_destination in Messaging 6.4
Same name and namespace in other branches
- 7 messaging.message.inc \Messaging_Message::check_destination()
Check we have a sending method and a destination
Parameters
$error: Whether to mark this message as error if destination not ok
File
- includes/
messaging_message.class.inc, line 507 - Drupal Messaging Framework - Message class file
Class
- Messaging_Message
- Message class
Code
function check_destination($error = FALSE) {
$this
->set_destination();
return !empty($this->method) && !empty($this->destination);
}