function addressfield_property_info_callback in Address Field 7
Callback to alter the property info of address fields.
See also
1 string reference to 'addressfield_property_info_callback'
- addressfield_field_info in ./
addressfield.module - Implements hook_field_info()
File
- ./
addressfield.module, line 833 - Defines a field for attaching country-specific addresses to entities.
Code
function addressfield_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<addressfield>' : 'addressfield';
$property['getter callback'] = 'entity_metadata_field_verbatim_get';
$property['setter callback'] = 'entity_metadata_field_verbatim_set';
$property['auto creation'] = 'addressfield_auto_creation';
$property['property info'] = addressfield_data_property_info();
unset($property['query callback']);
}