You are here

function privatemsg_block in Privatemsg 5.3

Same name and namespace in other branches
  1. 5 privatemsg.module \privatemsg_block()
  2. 6.2 privatemsg.module \privatemsg_block()
  3. 6 privatemsg.module \privatemsg_block()

Implementation of hook_block().

File

./privatemsg.module, line 435

Code

function privatemsg_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $blocks[0]['info'] = t('Private messages');
    return $blocks;
  }
  else {
    if ($op == 'view') {
      switch ($delta) {
        case 0:
          return _privatemsg_block_inbox();
      }
    }
  }
}