You are here

function hook_query_privatemsg_unread_count_alter in Privatemsg 7

Same name and namespace in other branches
  1. 7.2 privatemsg.api.php \hook_query_privatemsg_unread_count_alter()

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');
}