You are here

function hosting_server_handler_field_human_name::render in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 server/includes/views/handlers/hosting_server_handler_field_human_name.inc \hosting_server_handler_field_human_name::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

server/includes/views/handlers/hosting_server_handler_field_human_name.inc, line 17

Class

hosting_server_handler_field_human_name
A handler for the Site status field.

Code

function render($values) {

  // Default to the hostname if the human-readable name isn't set.
  $value = $values->{$this->field_alias} ? $values->{$this->field_alias} : $values->{$this->aliases['title']};
  return $value;
}