function privatemsg_block in Privatemsg 6
Same name and namespace in other branches
- 5.3 privatemsg.module \privatemsg_block()
- 5 privatemsg.module \privatemsg_block()
- 6.2 privatemsg.module \privatemsg_block()
File
- ./
privatemsg.module, line 1451 - Allows users to send private messages to other users.
Code
function privatemsg_block($op = 'list', $delta = 0, $edit = array()) {
if ('list' == $op) {
$blocks = array();
$blocks['privatemsg-menu'] = array(
'info' => t('Privatemsg links'),
'cache' => BLOCK_NO_CACHE,
);
$blocks['privatemsg-new'] = array(
'info' => t('New message indication'),
'cache' => BLOCK_NO_CACHE,
);
return $blocks;
}
elseif ('view' == $op) {
$block = array();
switch ($delta) {
case 'privatemsg-menu':
$block = _privatemsg_block_menu();
break;
case 'privatemsg-new':
$block = _privatemsg_block_new();
break;
}
return $block;
}
}