You are here

function phptemplate_privatemsg_list_field__subject in Privatemsg 6

Same name and namespace in other branches
  1. 6.2 privatemsg.theme.inc \phptemplate_privatemsg_list_field__subject()

Theme the subject of the thread.

See also

theme_privatemsg_list_field()

Related topics

File

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

Code

function phptemplate_privatemsg_list_field__subject($thread) {
  $field = array();
  $options = array();
  $is_new = '';
  if (!empty($thread['is_new'])) {
    $is_new = theme_mark(MARK_NEW);
    $options['fragment'] = 'new';
  }
  $field['data'] = l($thread['subject'], 'messages/view/' . $thread['thread_id'], $options) . $is_new;
  $field['class'] = 'privatemsg-list-subject';
  return $field;
}