function messaging_message_load in Messaging 6.3
Same name and namespace in other branches
- 6.4 messaging.module \messaging_message_load()
- 6 messaging.module \messaging_message_load()
- 6.2 messaging.module \messaging_message_load()
Helper function for message loading from the store
Parameters
$mqid: Message id
1 call to messaging_message_load()
- Messaging_API_Tests::testMessagingBasicAPI in tests/
messaging_api.test - Exercise basic API functions
1 string reference to 'messaging_message_load'
- Messaging_API_Tests::testMessagingBasicAPI in tests/
messaging_api.test - Exercise basic API functions
File
- ./
messaging.module, line 615
Code
function messaging_message_load($mqid) {
$cache =& messaging_static(__FUNCTION__);
if (!isset($cache[$mqid])) {
if ($message = messaging_store('load', $mqid)) {
$cache[$mqid] = $message;
}
else {
$cache[$mqid] = FALSE;
}
}
return $cache[$mqid];
}