class hosting_server_handler_field_human_name

A handler for the Site status field.

Hierarchy

Expanded class hierarchy of hosting_server_handler_field_human_name

Members

Contains filters are case sensitive

File

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

View source
class hosting_server_handler_field_human_name extends views_handler_field {
  /**
   * Constructor; calls to base object constructor.
   */
  function construct() {
    parent::construct();
    $this->additional_fields['title'] = array(
      'table' => 'node',
      'field' => 'title',
    );
  }

  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;
  }
}