You are here

function profile2_i18n_entity_property_info_alter in Profile 2 7

Same name and namespace in other branches
  1. 7.2 contrib/profile2_i18n.module \profile2_i18n_entity_property_info_alter()

Implements hook_entity_property_info_alter().

File

contrib/profile2_i18n.module, line 21
Profile2 i18n integration module via entity API i18n support.

Code

function profile2_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['profile2_type']['properties'][$name]['translatable'] = TRUE;
    $info['profile2_type']['properties'][$name]['i18n string'] = TRUE;
  }
}