You are here

function privatemsg_user_blocked in Privatemsg 5.3

Same name and namespace in other branches
  1. 5 privatemsg.module \privatemsg_user_blocked()
6 calls to privatemsg_user_blocked()
privatemsg_block_user in ./privatemsg.module
privatemsg_menu in ./privatemsg.module
Implementation of hook_menu().
privatemsg_message_allowed in ./privatemsg.module
privatemsg_unblock_user in ./privatemsg.module
privatemsg_user in ./privatemsg.module
Implementation of hook_user().

... See full list

File

./privatemsg.module, line 475

Code

function privatemsg_user_blocked($author, $recipient = NULL) {
  global $user;
  $recipient = $recipient ? $recipient : $user->uid;
  return db_result(db_query("SELECT COUNT(*) FROM {privatemsg_block_user} WHERE author = %d AND recipient = %d", $author, $recipient));
}