function theme_privatemsg_new_block in Privatemsg 6
Same name and namespace in other branches
- 6.2 privatemsg.theme.inc \theme_privatemsg_new_block()
- 7.2 privatemsg.theme.inc \theme_privatemsg_new_block()
- 7 privatemsg.theme.inc \theme_privatemsg_new_block()
Theme a block which displays the number of new messages a user has.
Related topics
1 theme call to theme_privatemsg_new_block()
File
- ./
privatemsg.theme.inc, line 298 - Theme functions for privatemsg.
Code
function theme_privatemsg_new_block($count) {
$text = format_plural($count, 'You have a new message, click here to read it', 'You have @count new messages, click here to read them', array(
'@count' => $count,
));
return l($text, 'messages', array(
'attributes' => array(
'id' => 'privatemsg-new-link',
),
));
}