function theme_privatemsg_list_field__count

7-1 privatemsg.theme.inc theme_privatemsg_list_field__count($variables)
7-2 privatemsg.theme.inc theme_privatemsg_list_field__count($variables)

Theme the replies field.

Related topics

File

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

Code

function theme_privatemsg_list_field__count($variables) {
  $thread = $variables['thread'];
  $field = array();
  $field['data'] = $thread['count'];
  $options = array();
  if (!empty($thread['is_new']) && $thread['is_new'] < $thread['count']) {
    $options['fragment'] = 'new';
    $field['data'] .= '<br />' . l((format_plural($thread['is_new'], '(1 new)', '(@count new)')), 'messages/view/' . $thread['thread_id'], $options);
  }
  $field['class'][] = 'privatemsg-list-count';
  return $field;
}