You are here

function entity_test_i18n_entity_property_info_alter in Entity API 7

Implements hook_entity_property_info_alter().

File

tests/entity_test_i18n.module, line 21
Entity-test i18n integration module via entity API i18n support.

Code

function entity_test_i18n_entity_property_info_alter(&$info) {

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