You are here

function messaging_message_test in Messaging 7

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

Test sending, just log message

File

./messaging.module, line 296

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;
}