You are here

function ref_field_field_property_callback in (Entity)Reference Field Synchronization 7

Property callback for the Entity Metadata framework.

1 string reference to 'ref_field_field_property_callback'
ref_field_field_info in ./ref_field.module
Implements hook_field_info().

File

./ref_field.module, line 727

Code

function ref_field_field_property_callback(&$info, $entity_type, $field, $instance, $field_type) {

  // Set the property type based on the targe type.
  $field_type['property_type'] = $field['settings']['entity'];

  // Then apply the default.
  entity_metadata_field_default_property_callback($info, $entity_type, $field, $instance, $field_type);
}