You are here

advancedqueue_handler_field_queue_name.inc in Advanced Queue 7

File

views/advancedqueue_handler_field_queue_name.inc
View source
<?php

/**
 * Field handler for title.
 *
 * Build the translated version of the title, with placeholders from result
 * (preferably) and the data replaced.
 */
class advancedqueue_handler_field_queue_name extends views_handler_field {
  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);
    }
  }

}

Classes

Namesort descending Description
advancedqueue_handler_field_queue_name Field handler for title.