function privatemsg_message_load in Privatemsg 6.2
Same name and namespace in other branches
- 6 privatemsg.module \privatemsg_message_load()
- 7.2 privatemsg.module \privatemsg_message_load()
- 7 privatemsg.module \privatemsg_message_load()
Load a single message.
Parameters
$pmid: Message id, pm.mid field
$account: For which account the message should be loaded. Defaults to the current user.
$reset: Reset the static cache.
Related topics
6 calls to privatemsg_message_load()
- pm_email_notify_privatemsg_message_recipient_changed in pm_email_notify/
pm_email_notify.module - Implements hook_privatemsg_message_recipient_changed().
- PrivatemsgTestCase::testPrivatemsgFlush in ./
privatemsg.test - Tests for the flush feature
- privatemsg_attachments_file_download in privatemsg_attachments/
privatemsg_attachments.module - Implements hook_file_download().
- privatemsg_cron in ./
privatemsg.module - Implements hook_cron().
- privatemsg_message_change_recipient in ./
privatemsg.module - Add or remove a recipient to an existing message.
File
- ./
privatemsg.module, line 1956 - Allows users to send private messages to other users.
Code
function privatemsg_message_load($pmid, $account = NULL, $reset = FALSE) {
$messages = privatemsg_message_load_multiple(array(
$pmid,
), $account, $reset);
return current($messages);
}