You are here

function dynamic_entity_reference_field_property_callback in Dynamic Entity Reference 7

Property callback for the Entity Metadata framework.

1 string reference to 'dynamic_entity_reference_field_property_callback'
dynamic_entity_reference_field_info in ./dynamic_entity_reference.field.inc
Implements hook_field_info().

File

./dynamic_entity_reference.field.inc, line 35
Contains field hooks.

Code

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

  // Set the property type based on the targe type.
  $field_type['property_type'] = 'entity';
  $field_type['setter callback'] = 'dynamic_entity_reference_metadata_field_property_set';

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