You are here

function _privatemsg_block_inbox in Privatemsg 5

Same name and namespace in other branches
  1. 5.3 privatemsg.module \_privatemsg_block_inbox()
1 call to _privatemsg_block_inbox()
privatemsg_block in ./privatemsg.module
Implementation of hook_block().

File

./privatemsg.module, line 522

Code

function _privatemsg_block_inbox() {
  global $user;
  if ($user->uid && user_access('access private messages') && $user->privatemsg_allow) {
    $new = _privatemsg_get_new_messages();
    $block = theme('privatemsg_block_inbox', $new);
    return $block;
  }
}