function hosting_task_handler_field_status::render in Hosting 7.3
Same name and namespace in other branches
- 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
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;
}