You are here

function commerce_coupon_action_get_coupon_uses in Commerce Coupon 7

Action to get all uses for a coupon.

File

./commerce_coupon.rules.inc, line 230
Coupon rules integration file.

Code

function commerce_coupon_action_get_coupon_uses($coupon) {
  return array(
    'number_of_uses' => commerce_coupon_get_number_of_uses($coupon->coupon_id),
  );
}