You are here

messaging_simple.class.inc in Messaging 6.3

File

messaging_simple/messaging_simple.class.inc
View source
<?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;
  }

}

Classes

Namesort descending Description
Messaging_Method_Simple Implementation of sending method