function hook_query_privatemsg_unread_count_alter

7-1 privatemsg.api.php hook_query_privatemsg_unread_count_alter($query)
7-2 privatemsg.api.php hook_query_privatemsg_unread_count_alter($query)

Loads all unread messages of a user (only the count query is used).

Parameters

$query: Query object

See also

privatemsg_sql_unread_count()

hook_query_alter()

Related topics

File

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

Code

function hook_query_privatemsg_unread_count_alter($query) {
  $account = $query->getMetaData('arg_1');
}