You are here

function hosting_task_handler_field_status::render in Hosting 7.3

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

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

task/includes/views/handlers/hosting_task_handler_field_status.inc, line 36

Class

hosting_task_handler_field_status

Code

function render($values) {
  $value = $values->{$this->field_alias};
  switch ($this->options['alter']['status_mode']) {
    case 'text':
      return _hosting_parse_error_code($value);
    case 'class':
      return hosting_task_status_class($value);
  }
  return $value;
}