You are here

function commerce_line_item_property_info_callback in Commerce Core 7

Callback to alter the property info of the reference field.

See also

commerce_line_item_field_info().

1 string reference to 'commerce_line_item_property_info_callback'
commerce_line_item_field_info in modules/line_item/commerce_line_item.module
Implements hook_field_info().

File

modules/line_item/commerce_line_item.module, line 1436
Defines the core Commerce line item entity and API functions interact with line items on orders.

Code

function commerce_line_item_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';
}