You are here

function Messaging_Method_Simple::send in Messaging 6.3

Just store the message to be displayed later

File

messaging_simple/messaging_simple.class.inc, line 9

Class

Messaging_Method_Simple
Implementation of sending method

Code

function send($destination, $message) {
  $message->uid = $destination;
  if (isset($message->msid)) {
    unset($message->msid);
  }
  $message->sent = time();
  drupal_write_record('messaging_simple', $message);
  return TRUE;
}