You are here

class Messaging_Method_Simple in Messaging 6.3

Implementation of sending method

Hierarchy

Expanded class hierarchy of Messaging_Method_Simple

1 string reference to 'Messaging_Method_Simple'
messaging_simple_messaging in messaging_simple/messaging_simple.module
Implementation of hook_messaging

File

messaging_simple/messaging_simple.class.inc, line 5

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

}

Members

Namesort descending Modifiers Type Description Overrides
Messaging_Method_Simple::send function Just store the message to be displayed later