You are here

function commerce_coupon_conditions_component_name in Commerce Coupon 7.2

Finds the component name for a given coupon type.

Parameters

string $type: Coupon bundle name.

Return value

string The name of the coupon condition component.

1 call to commerce_coupon_conditions_component_name()
commerce_coupon_menu in ./commerce_coupon.module
Implements hook_menu().

File

./commerce_coupon.module, line 253
Provides coupon functionality for Drupal Commerce.

Code

function commerce_coupon_conditions_component_name($type) {
  return 'coupon_type_' . $type . '_conditions';
}