You are here

function messaging_message_test in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.module \messaging_message_test()

Test sending, just log message

1 call to messaging_message_test()
Messaging_Message::process in includes/messaging_message.class.inc
Check whether the message is to be sent / queued

File

./messaging.module, line 368

Code

function messaging_message_test($message, $destinations = array()) {
  $message
    ->prepare();
  $message
    ->render();
  messaging_log('Emulating message sending (test run)', array(
    'summary' => (string) $message,
    'message' => $message,
    'destinations' => $destinations,
  ));
  return $message->success = TRUE;
}