You are here

function phptemplate_privatemsg_list_field__subject in Privatemsg 6.2

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

Theme the subject of the thread.

Related topics

File

./privatemsg.theme.inc, line 59
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'], privatemsg_get_dynamic_url_prefix() . '/view/' . $thread['thread_id'], $options) . $is_new;
  $field['class'] = 'privatemsg-list-subject';
  return $field;
}