function entityreference_field_property_callback in Entity reference 7
Property callback for the Entity Metadata framework.
1 string reference to 'entityreference_field_property_callback'
- entityreference_field_info in ./
entityreference.module - Implements hook_field_info().
File
- ./
entityreference.module, line 715 - Entityreference primary module file.
Code
function entityreference_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']['target_type'];
// Then apply the default.
entity_metadata_field_default_property_callback($info, $entity_type, $field, $instance, $field_type);
// Invoke the behaviors to allow them to change the properties.
foreach (entityreference_get_behavior_handlers($field, $instance) as $handler) {
$handler
->property_info_alter($info, $entity_type, $field, $instance, $field_type);
}
}