function pm_block_user_query_privatemsg_message_load_multiple_alter

7-1 pm_block_user.module pm_block_user_query_privatemsg_message_load_multiple_alter($query)
7-2 pm_block_user.module pm_block_user_query_privatemsg_message_load_multiple_alter($query)

File

pm_block_user/pm_block_user.module, line 314
Allows users to block other users from sending them any messages

Code

function pm_block_user_query_privatemsg_message_load_multiple_alter($query) {
  $query->addField('pmbu', 'recipient', 'is_blocked');
  $query->leftJoin('pm_block_user', 'pmbu', "base.author = pmbu.author AND pmi.recipient = pmbu.recipient AND pmi.type IN ('user', 'hidden')");
}