function privatemsg_title_callback

1 privatemsg.module privatemsg_title_callback($title = NULL)
7-1 privatemsg.module privatemsg_title_callback($title = NULL)
7-2 privatemsg.module privatemsg_title_callback($title = NULL)
6-2 privatemsg.module privatemsg_title_callback($account = NULL)
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 1534
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');
}