function commerce_product_reference_property_info_callback in Commerce Core 7
Callback to alter the property info of the reference fields.
See also
commerce_product_reference_field_info().
1 string reference to 'commerce_product_reference_property_info_callback'
- commerce_product_reference_field_info in modules/
product_reference/ commerce_product_reference.module - Implements hook_field_info().
File
- modules/
product_reference/ commerce_product_reference.module, line 1506 - Defines a field type for referencing products from other entities.
Code
function commerce_product_reference_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';
}