You are here

function Messaging_Send_Method::message_send in Messaging 7

Same name and namespace in other branches
  1. 6.4 includes/messaging_method.class.inc \Messaging_Send_Method::message_send()
  2. 6.3 classes/messaging_method.class.inc \Messaging_Send_Method::message_send()

Send message to a single or multiple destination

1 call to Messaging_Send_Method::message_send()
Messaging_Send_Method::message_queue in ./messaging.method.inc
Queue message for next delivery

File

./messaging.method.inc, line 190
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Send_Method
Sending method, implements all specific method functionality

Code

function message_send($message) {
  $this
    ->message_log('Message send', $message);
  $destinations = $message
    ->get_destinations();
  $results = $this
    ->send_multiple($destinations, $message);
  $message
    ->set_results($results);
  return (bool) array_filter($results);
}