function farm_livestock_entity_insert in farmOS 7
Implements hook_entity_insert().
File
- modules/
farm/ farm_livestock/ farm_livestock.module, line 338
Code
function farm_livestock_entity_insert($entity, $type) {
// If this is a birth log, sync children.
if ($type == 'log' && $entity->type == 'farm_birth') {
farm_livestock_birth_log_sync($entity);
}
}