function countries_entity_metadata_field_property_callback in Countries 7.2
Same name and namespace in other branches
- 8 countries.fields.inc \countries_entity_metadata_field_property_callback()
Callback to add in property info defaults per field instance.
See also
entity_metadata_field_entity_property_info().
1 call to countries_entity_metadata_field_property_callback()
- countries_field_info_property_callback in ./
countries.fields.inc - @TODO: Function to keep compatibility with 7.x-2.1 version. @see: #2293209 issue.
1 string reference to 'countries_entity_metadata_field_property_callback'
- countries_field_info in ./
countries.fields.inc - Implements hook_field_info().
File
- ./
countries.fields.inc, line 43 - All field related code.
Code
function countries_entity_metadata_field_property_callback(&$info, $entity_type, $field, $instance, $field_type) {
$name = $field['field_name'];
$property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$name];
entity_metadata_field_default_property_callback($info, $entity_type, $field, $instance, $field_type);
$property['options list'] = 'entity_metadata_field_options_list';
}