You are here

function messaging_store_load in Messaging 6.3

Same name and namespace in other branches
  1. 6 messaging.store.inc \messaging_store_load()
  2. 6.2 messaging.store.inc \messaging_store_load()

Load single message from store

File

./messaging.store.inc, line 142
Database storage for the messaging framework

Code

function messaging_store_load($mqid) {
  if ($message = db_fetch_object(db_query('SELECT * FROM {messaging_store} WHERE mqid = %d', $mqid))) {
    return messaging_store_unpack($message, 'Messaging_Message');
  }
}