You are here

function lingotek_entity_info_alter in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lingotek.module \lingotek_entity_info_alter()
  2. 7.2 lingotek.module \lingotek_entity_info_alter()
  3. 7.3 lingotek.module \lingotek_entity_info_alter()
  4. 7.5 lingotek.module \lingotek_entity_info_alter()
  5. 7.6 lingotek.module \lingotek_entity_info_alter()

Implements hook_entity_info_alter().

File

./lingotek.module, line 1670

Code

function lingotek_entity_info_alter(&$entity_info) {

  // Only alter the entity handling of comment fields
  // if Lingotek translation is enabled.
  if (variable_get('lingotek_translate_comments', FALSE)) {
    $entity_info['comment']['translation']['lingotek'] = TRUE;
  }
  if (isset($entity_info['field_collection_item'])) {
    $entity_info['field_collection_item']['translation']['lingotek'] = TRUE;
  }
}