You are here

protected static function Messaging_Store::message_unpack in Messaging 6.4

Unpack stored messages

Parameters

$message: Array as retrieved from the db store

$full: True for loading the account data if this message is intended for a user And loading the file objects associated too

3 calls to Messaging_Store::message_unpack()
Messaging_Store::get_messages in includes/messaging_store.class.inc
Retrieve from messaging database storage
Messaging_Store::queue_process_step in includes/messaging_store.class.inc
Retrieve and send queued messages
Messaging_Store::_message_load in includes/messaging_store.class.inc
Load single message from store. No static cache.

File

includes/messaging_store.class.inc, line 325
Database storage for the messaging framework

Class

Messaging_Store
Default storage and queueing system for Messaging

Code

protected static function message_unpack($message, $full = FALSE) {

  // Unserialize stored parameters
  if ($message->params) {
    $message->params = unserialize($message->params);
  }

  // Unserialize data field
  drupal_unpack($message);

  // Saved messages are prepared and rendered
  $message->prepared = $message->rendered = TRUE;

  // And they may be already marked for queue / log
  $message->queued = $message->queue;
  $message->logged = $message->log;
  return messaging_message_build($message);
}