You are here

function commerce_discount_entity_property_info_alter in Commerce Discount 7

Implements hook_entity_property_info_alter().

File

./commerce_discount.module, line 1287
Defines the discount and discount offer entities, bundles and functionality.

Code

function commerce_discount_entity_property_info_alter(&$info) {
  if (module_exists('i18n_string')) {

    // Mark some properties as translatable, but also denote that translation
    // works with i18n_string.
    foreach (array(
      'component_title',
    ) as $name) {
      $info['commerce_discount']['properties'][$name]['translatable'] = TRUE;
      $info['commerce_discount']['properties'][$name]['i18n string'] = TRUE;
    }
  }
}