function theme_privatemsg_new_block

1 privatemsg.theme.inc theme_privatemsg_new_block($count)
7-1 privatemsg.theme.inc theme_privatemsg_new_block($count)
7-2 privatemsg.theme.inc theme_privatemsg_new_block($count)
6-2 privatemsg.theme.inc theme_privatemsg_new_block($count)

Theme a block which displays the number of unread messages a user has.

Related topics

1 theme call to theme_privatemsg_new_block()
2 string references to the theme hook from theme_privatemsg_new_block()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

privatemsg_theme in ./privatemsg.module
_privatemsg_block_new in ./privatemsg.module

File

./privatemsg.theme.inc, line 120
Theme functions for privatemsg.

Code

function theme_privatemsg_new_block($count) {
  $count = $count['count'];
  if ($count == 0) {
    $text = t('Click here to go to your messages.');
  }
  else {
    $text = format_plural($count, 'You have an unread message! Click here to read it.', 'You have @count unread messages! Click here to read them.');
  }

  return l($text, 'messages', array('attributes' => array('id' => 'privatemsg-new-link')));
}