You are here

function hook_query_privatemsg_messages_alter in Privatemsg 7.2

Same name and namespace in other branches
  1. 7 privatemsg.api.php \hook_query_privatemsg_messages_alter()

Query definition to load messages of one or multiple threads.

Parameters

$query: Query object

See also

privatemsg_sql_messages()

hook_query_alter()

Related topics

File

./privatemsg.api.php, line 83
Privatemsg API Documentation

Code

function hook_query_privatemsg_messages_alter($query) {
  $threads = $query
    ->getMetaData('arg_1');
  $account = $query
    ->getMetaData('arg_2');
  $load_all = $query
    ->getMetaData('arg_3');
}