function theme_privatemsg_list_field__count in Privatemsg 7.2
Same name and namespace in other branches
- 7 privatemsg.theme.inc \theme_privatemsg_list_field__count()
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;
}