You are here

function messaging_simple_send_msg in Messaging 6.4

Same name and namespace in other branches
  1. 5 messaging_simple/messaging_simple.module \messaging_simple_send_msg()
  2. 6 messaging_simple/messaging_simple.module \messaging_simple_send_msg()
  3. 6.2 messaging_simple/messaging_simple.module \messaging_simple_send_msg()

Just store the message to be shown later

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

File

messaging_simple/messaging_simple.module, line 176
Simple messaging using html page. Messaging method plug-in

Code

function messaging_simple_send_msg($uid, $message) {

  // Store without changing the original message
  $store = clone $message;
  $store->uid = $uid;
  $store->sent = time();
  drupal_write_record('messaging_simple', $store);
  return TRUE;
}