You are here

function commerce_customer_field_info in Commerce Core 7

Implements hook_field_info().

File

modules/customer/commerce_customer.module, line 750
Defines the customer profile entity and API functions to manage customers and interact with them.

Code

function commerce_customer_field_info() {
  return array(
    'commerce_customer_profile_reference' => array(
      'label' => t('Customer profile reference'),
      'description' => t('This field stores the ID of a related customer profile as an integer value.'),
      'settings' => array(
        'profile_type' => 'billing',
        'options_list_limit' => 50,
      ),
      'instance_settings' => array(),
      'default_widget' => 'options_select',
      'default_formatter' => 'commerce_customer_profile_reference_display',
      'property_type' => 'commerce_customer_profile',
      'property_callbacks' => array(
        'commerce_customer_profile_property_info_callback',
      ),
    ),
  );
}