You are here

uc_product_handler_field_length.inc in Ubercart 7.3

Same filename and directory in other branches
  1. 6.2 uc_product/views/uc_product_handler_field_length.inc

Views handler: Product length field.

File

uc_product/views/uc_product_handler_field_length.inc
View source
<?php

/**
 * @file
 * Views handler: Product length field.
 */

/**
 * Returns a formatted length value to display in the View.
 */
class uc_product_handler_field_length extends views_handler_field_numeric {

  /**
   * Overrides views_handler_field::render().
   */
  function render($values) {
    return uc_length_format($values->{$this->field_alias}, $values->{$this->aliases['length_units']});
  }

}

Classes

Namesort descending Description
uc_product_handler_field_length Returns a formatted length value to display in the View.