You are here

uc_coupon_handler_field_bulk_number.inc in Ubercart Discount Coupons 7.3

Views handler: Coupon bulk number.

File

views/uc_coupon_handler_field_bulk_number.inc
View source
<?php

/**
 * @file
 * Views handler: Coupon bulk number.
 */

/**
 * Return number of bulk codes based on this field
 */
class uc_coupon_handler_field_bulk_number extends views_handler_field_numeric {
  function render($values) {
    $data = unserialize($values->{$this->field_alias});
    return $data['bulk_number'];
  }

}

Classes

Namesort descending Description
uc_coupon_handler_field_bulk_number Return number of bulk codes based on this field