function commerce_discount_entity_info_alter in Commerce Discount 7
Implements hook_entity_info_alter().
File
- ./
commerce_discount.module, line 1277 - Defines the discount and discount offer entities, bundles and functionality.
Code
function commerce_discount_entity_info_alter(&$info) {
if (module_exists('i18n_string')) {
// Enable i18n support via the entity API.
$info['commerce_discount']['i18n controller class'] = 'EntityDefaultI18nStringController';
}
}