<?php
/**
 * Implementation of sending method
 */
class Messaging_Method_Simple extends Messaging_Send_Method {
  /**
   * Just store the message to be displayed later 
  */  
  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;
  }
}