function farm_log_entity_presave in farmOS 7
Implements hook_entity_presave().
File
- modules/farm/ farm_log/ farm_log.module, line 54 
- Code for the Farm Log feature.
Code
function farm_log_entity_presave($entity, $type) {
  // Perform actions when a log is saved.
  if ($type == 'log') {
    // Fill in the log owner field.
    farm_log_populate_owner($entity);
    // Populate the geometry field from areas.
    farm_log_populate_geometry($entity);
  }
}