function messaging_devel_send_msg in Messaging 7
Just show message title to the user.
This is a pull method though, so this is mainly intended for testing options
2 string references to 'messaging_devel_send_msg'
- messaging_devel_messaging in messaging_devel/
messaging_devel.module - Implementation of hook_messaging
- messaging_devel_messaging_methods_alter in messaging_devel/
messaging_devel.module - Implementation of hook_messaging_methods_alter()
File
- messaging_devel/
messaging_devel.module, line 320 - Simple messaging using html page. Messaging method plug-in
Code
function messaging_devel_send_msg($destination, $message) {
// Just logs everything and mark the message for logging too.
$message->log = 1;
$text = '';
$watchdog = array();
$variables = array(
'%name' => $destination,
'%key' => $message->type,
'%subject' => $message->subject,
'@body' => $message->body,
);
messaging_log('Message %key for %name: %subject', $variables);
// Just log message body at the end
watchdog('messaging', 'Message %key for %name: %subject <br /> Message body: <br /><pre>@body</pre>', $variables);
return TRUE;
}