function geofield_property_info_callback in Geofield 7
Same name and namespace in other branches
- 7.2 geofield.schemaorg.inc \geofield_property_info_callback()
Callback to alter the property info of geofield fields.
See also
1 string reference to 'geofield_property_info_callback'
- geofield_field_info in ./
geofield.module - Implements hook_field_info().
File
- ./
geofield.module, line 449
Code
function geofield_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<geofield>' : 'geofield';
$property['getter callback'] = 'entity_metadata_field_verbatim_get';
$property['setter callback'] = 'entity_metadata_field_verbatim_set';
// $property['auto creation'] = 'geofield_default_values';
$property['property info'] = geofield_data_property_info('Geofield');
unset($property['query callback']);
}