function privatemsg_title_callback in Privatemsg 6
Same name and namespace in other branches
- 6.2 privatemsg.module \privatemsg_title_callback()
- 7.2 privatemsg.module \privatemsg_title_callback()
- 7 privatemsg.module \privatemsg_title_callback()
1 call to privatemsg_title_callback()
1 string reference to 'privatemsg_title_callback'
- privatemsg_menu in ./
privatemsg.module - Implements hook_menu().
File
- ./
privatemsg.module, line 1479 - Allows users to send private messages to other users.
Code
function privatemsg_title_callback($title = NULL) {
$count = privatemsg_unread_count();
if ($count > 0) {
return format_plural($count, 'Messages (1 new)', 'Messages (@count new)');
}
return t('Messages');
}