You are here

function auto_entitylabel_field_attach_presave in Automatic Entity Label 7

Implements hook_field_attach_presave().

Required for compatibility with entity_translation module, which does not invoke hook_entity_presave() when saving new translations.

File

./auto_entitylabel.module, line 217
Allows hiding of entity label fields and automatic label creation.

Code

function auto_entitylabel_field_attach_presave($entity_type, $entity) {
  auto_entitylabel_entity_presave($entity, $entity_type);
}