You are here

function Messaging_Simple_Method::send_user in Messaging 7

Send to user. Just store the message to be shown later.

1 call to Messaging_Simple_Method::send_user()
Messaging_Simple_Method::send_address in messaging_simple/messaging_simple.inc
Send message to address, use sending callback

File

messaging_simple/messaging_simple.inc, line 102
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Simple_Method
Web sending method

Code

function send_user($user, $message) {
  $user = messaging_user_object($user);
  $simple = Messaging_Simple::build($user, $message);
  return (bool) $simple
    ->save();
}