You are here

function lingotek_entity_presave in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 8 lingotek.module \lingotek_entity_presave()
  2. 8.2 lingotek.module \lingotek_entity_presave()
  3. 7.7 lingotek.module \lingotek_entity_presave()
  4. 7.4 lingotek.module \lingotek_entity_presave()
  5. 7.6 lingotek.module \lingotek_entity_presave()
  6. 4.0.x lingotek.module \lingotek_entity_presave()
  7. 3.0.x lingotek.module \lingotek_entity_presave()
  8. 3.1.x lingotek.module \lingotek_entity_presave()
  9. 3.2.x lingotek.module \lingotek_entity_presave()
  10. 3.3.x lingotek.module \lingotek_entity_presave()
  11. 3.4.x lingotek.module \lingotek_entity_presave()
  12. 3.5.x lingotek.module \lingotek_entity_presave()
  13. 3.6.x lingotek.module \lingotek_entity_presave()
  14. 3.7.x lingotek.module \lingotek_entity_presave()
  15. 3.8.x lingotek.module \lingotek_entity_presave()

Implements hook_entity_presave().

File

./lingotek.module, line 1938

Code

function lingotek_entity_presave($entity, $entity_type) {
  $special_entities = array(
    'field_collection_item',
    'taxonomy_term',
    'message_type',
    'fieldable_panels_pane',
  );
  if (!in_array($entity_type, $special_entities)) {
    return;
  }
  lingotek_normalize_special_field_language($entity_type, $entity, FALSE);
}