You are here

function privatemsg_message_load_multiple in Privatemsg 7

Same name and namespace in other branches
  1. 6.2 privatemsg.module \privatemsg_message_load_multiple()
  2. 6 privatemsg.module \privatemsg_message_load_multiple()
  3. 7.2 privatemsg.module \privatemsg_message_load_multiple()

Load multiple messages.

Parameters

$pmids: Array of Message ids, pm.mid field

$account: For which account the message should be loaded. Defaults to the current user.

Related topics

2 calls to privatemsg_message_load_multiple()
privatemsg_message_load in ./privatemsg.module
Load a single message.
privatemsg_thread_load in ./privatemsg.module
Load a thread with all the messages and participants.

File

./privatemsg.module, line 2020
Allows users to send private messages to other users.

Code

function privatemsg_message_load_multiple(array $pmids, array $conditions = array(), $reset = FALSE) {
  $result = entity_load('privatemsg_message', $pmids, $conditions, $reset);
  return $result;
}