function commerce_customer_profile_property_info_callback in Commerce Core 7
Callback to alter the property info of the reference field.
See also
commerce_customer_field_info().
1 string reference to 'commerce_customer_profile_property_info_callback'
- commerce_customer_field_info in modules/
customer/ commerce_customer.module - Implements hook_field_info().
File
- modules/
customer/ commerce_customer.module, line 1263 - Defines the customer profile entity and API functions to manage customers and interact with them.
Code
function commerce_customer_profile_property_info_callback(&$info, $entity_type, $field, $instance, $field_type) {
$property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$field['field_name']];
$property['options list'] = 'entity_metadata_field_options_list';
}