function commerce_price_field_widget_info in Commerce Core 7
Implements hook_field_widget_info().
File
- modules/
price/ commerce_price.module, line 564 - Defines the Price field with widgets and formatters used to add prices with currency codes to various Commerce entities.
Code
function commerce_price_field_widget_info() {
return array(
'commerce_price_simple' => array(
'label' => t('Price textfield'),
'field types' => array(
'commerce_price',
),
'settings' => array(
'currency_code' => 'default',
),
),
'commerce_price_full' => array(
'label' => t('Price with currency'),
'field types' => array(
'commerce_price',
),
'settings' => array(
'currency_code' => 'default',
),
),
);
}