1 views_handler_field_ncs_last_comment_name.inc views_handler_field_ncs_last_comment_name::render($values)

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

File

core/modules/comment/views/views_handler_field_ncs_last_comment_name.inc, line 41
Definition of views_handler_field_ncs_last_comment_name.

Class

views_handler_field_ncs_last_comment_name
Field handler to present the name of the last comment poster.

Code

function render($values) {
  if (!empty($this->options['link_to_user'])) {
    $account = new stdClass();
    $account->name = $this->get_value($values);
    $account->uid = $values->{$this->uid};
    return theme('username', array(
      'account' => $account
    ));
  }
  else {
    return $this->sanitize_value($this->get_value($values));
  }
}