You are here

function farm_livestock_entity_update in farmOS 7

Implements hook_entity_update().

File

modules/farm/farm_livestock/farm_livestock.module, line 349

Code

function farm_livestock_entity_update($entity, $type) {

  // If this is a birth log, sync children.
  if ($type == 'log' && $entity->type == 'farm_birth') {
    farm_livestock_birth_log_sync($entity);
  }
}