public static function Messaging_Store::message_load in Messaging 6.4
Load single message from store / static cache
File
- includes/
messaging_store.class.inc, line 278 - Database storage for the messaging framework
Class
- Messaging_Store
- Default storage and queueing system for Messaging
Code
public static function message_load($mqid, $refresh = FALSE) {
if (!$refresh) {
$cached = self::cache_get($mqid);
}
if (isset($cached)) {
return $cached;
}
else {
$message = self::_message_load($mqid);
self::cache_set($mqid, $message ? $message : FALSE);
return $message;
}
}