function advancedqueue_handler_field_queue_name::render in Advanced Queue 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- views/
advancedqueue_handler_field_queue_name.inc, line 10
Class
- advancedqueue_handler_field_queue_name
- Field handler for title.
Code
function render($values) {
$queues = advancedqueue_get_queues_info();
$value = $this
->get_value($values);
if (isset($queues[$value]) && !empty($queues[$value]['label'])) {
return $this
->sanitize_value($queues[$value]['label']);
}
else {
return parent::render($values);
}
}