function messaging_message_build in Messaging 7
Same name and namespace in other branches
- 6.4 messaging.module \messaging_message_build()
- 6.3 messaging.module \messaging_message_build()
Build message object from object or array
2 calls to messaging_message_build()
- MessagingTestCase::randomMessage in tests/
messaging_test_case.inc - messaging_admin_test_post_form_submit in ./
messaging.admin.inc - Post test message
File
- ./
messaging.module, line 253
Code
function messaging_message_build($message) {
if (is_object($message) && is_a($message, 'Messaging_Message')) {
return $message;
}
elseif (is_array($message)) {
$message = (object) $message;
}
return Messaging_Message::build_template($message);
}