You are here

commerce_order_handler_field_order_status.inc in Commerce Core 7

File

modules/order/includes/views/handlers/commerce_order_handler_field_order_status.inc
View source
<?php

/**
 * Field handler to translate an order status into its readable form.
 */
class commerce_order_handler_field_order_status extends commerce_order_handler_field_order {
  function render($values) {
    $name = $this
      ->get_value($values);
    $value = commerce_order_status_get_title($name);

    // Only attempt to render a valid order status.
    if (!is_array($value)) {
      return $this
        ->render_link($this
        ->sanitize_value($value), $values);
    }
  }

}

Classes

Namesort descending Description
commerce_order_handler_field_order_status Field handler to translate an order status into its readable form.