You are here

function addressfield_phone_property_info_callback in Address Field Phone 7

Callback to alter the property info of addressfield.

1 string reference to 'addressfield_phone_property_info_callback'
addressfield_phone_field_info_alter in ./addressfield_phone.module
Implements hook_field_info_alter().

File

./addressfield_phone.module, line 31
Add additional phone fields to addressfield.

Code

function addressfield_phone_property_info_callback(&$info, $entity_type, $field, $instance, $field_type) {
  $name = $field['field_name'];
  $property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$name];
  $property['property info'] += addressfield_phone_data_property_info();
}