function phptemplate_privatemsg_list_field__count in Privatemsg 6.2
Same name and namespace in other branches
- 6 privatemsg.theme.inc \phptemplate_privatemsg_list_field__count()
Theme the replies field.
Related topics
File
- ./
privatemsg.theme.inc, line 75 - Theme functions for privatemsg.
Code
function phptemplate_privatemsg_list_field__count($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)'), privatemsg_get_dynamic_url_prefix() . '/view/' . $thread['thread_id'], $options);
}
$field['class'] = 'privatemsg-list-count';
return $field;
}