function domain_entity_property_info_callback in Domain Access Entity 7
Callback to alter the property info of domain fields.
See also
1 string reference to 'domain_entity_property_info_callback'
- domain_entity_field_info in ./
domain_entity.module - Implements hook_field_info().
File
- ./
domain_entity.module, line 661 - Defines field (e.g. domain_entity) for entities, and access query alter.
Code
function domain_entity_property_info_callback(&$info, $entity_type, $field, $instance, $field_type) {
$name = $field['field_name'];
$property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$name];
$property['type'] = $field['cardinality'] != 1 ? 'list<domain_entity>' : 'domain_entity';
$property['getter callback'] = 'entity_metadata_field_verbatim_get';
$property['setter callback'] = 'entity_metadata_field_verbatim_set';
$property['property info'] = domain_entity_field_data_property_info($name);
unset($property['query callback']);
unset($property['auto creation']);
}