function lingotek_entity_presave in Lingotek Translation 7.7
Same name and namespace in other branches
- 8 lingotek.module \lingotek_entity_presave()
- 8.2 lingotek.module \lingotek_entity_presave()
- 7.4 lingotek.module \lingotek_entity_presave()
- 7.5 lingotek.module \lingotek_entity_presave()
- 7.6 lingotek.module \lingotek_entity_presave()
- 4.0.x lingotek.module \lingotek_entity_presave()
- 3.0.x lingotek.module \lingotek_entity_presave()
- 3.1.x lingotek.module \lingotek_entity_presave()
- 3.2.x lingotek.module \lingotek_entity_presave()
- 3.3.x lingotek.module \lingotek_entity_presave()
- 3.4.x lingotek.module \lingotek_entity_presave()
- 3.5.x lingotek.module \lingotek_entity_presave()
- 3.6.x lingotek.module \lingotek_entity_presave()
- 3.7.x lingotek.module \lingotek_entity_presave()
- 3.8.x lingotek.module \lingotek_entity_presave()
Implements hook_entity_presave().
File
- ./
lingotek.module, line 2330
Code
function lingotek_entity_presave($entity, $entity_type) {
// handle special entities
$default_special_entities = array(
'field_collection_item',
'taxonomy_term',
'message_type',
'fieldable_panels_pane',
'bean',
);
$special_entities = variable_get('lingotek_special_entity_types', $default_special_entities);
if (!in_array($entity_type, $special_entities)) {
return;
}
lingotek_normalize_special_field_language($entity_type, $entity, FALSE);
}