function privatemsg_user_blocked in Privatemsg 5
Same name and namespace in other branches
- 5.3 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().
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));
}