You are here

function commerce_coupon_usage_inline_conditions_info in Commerce Coupon 7.2

Implements hook_inline_conditions_info().

File

modules/usage/commerce_coupon_usage.module, line 92

Code

function commerce_coupon_usage_inline_conditions_info() {

  // Usage module only runs its conditions when the user is attempting to redeem
  // a coupon, which we call the "pre-redeem" phase.
  $conditions['commerce_coupon_usage_evaluate_usage'] = array(
    'label' => t('Maximum usage'),
    'entity type' => 'commerce_coupon',
    'callbacks' => array(
      'configure' => 'commerce_coupon_usage_evaluate_usage_configure',
      'build' => 'commerce_coupon_usage_evaluate_usage_build',
    ),
  );
  return $conditions;
}