diff --git a/entityreference.module b/entityreference.module index a9eac1b..cc30a34 100644 --- a/entityreference.module +++ b/entityreference.module @@ -243,20 +243,6 @@ function entityreference_field_validate($entity_type, $entity, $field, $instance * Adds the target type to the field data structure when saving. */ function entityreference_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items) { - // Optionally hardcode the revision. - if (!empty($field['settings']['handler_settings']['lock_revision'])) { - $dest_entity_type = $field['settings']['target_type']; - foreach ($items as $key => $val) { - if ($dest_entity_type == 'bean') { - $ref_entity = reset(entity_load($dest_entity_type, array($val['target_id']))); - $ref_ids = entity_extract_ids($dest_entity_type, $ref_entity); - if (isset($ref_ids[1]) && is_numeric($ref_ids[1])) { - $items[$key]['revision_id'] = $ref_ids[1]; - } - } - } - } - // Invoke the behaviors. foreach (entityreference_get_behavior_handlers($field, $instance) as $handler) { $handler->presave($entity_type, $entity, $field, $instance, $langcode, $items);