You are here

function commerce_customer_field_widget_info in Commerce Core 7

Implements hook_field_widget_info().

Defines widgets available for use with field types as specified in each widget's $info['field types'] array.

File

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

Code

function commerce_customer_field_widget_info() {
  $widgets = array();

  // Define the creation / reference widget for line items.
  $widgets['commerce_customer_profile_manager'] = array(
    'label' => t('Customer profile manager'),
    'description' => t('Use a complex widget to edit the profile referenced by this object.'),
    'field types' => array(
      'commerce_customer_profile_reference',
    ),
    'settings' => array(),
    'behaviors' => array(
      'multiple values' => FIELD_BEHAVIOR_CUSTOM,
      'default value' => FIELD_BEHAVIOR_NONE,
    ),
  );
  return $widgets;
}