You are here

function commerce_price_field_formatter_info in Commerce Core 7

Implements hook_field_formatter_info().

File

modules/price/commerce_price.module, line 327
Defines the Price field with widgets and formatters used to add prices with currency codes to various Commerce entities.

Code

function commerce_price_field_formatter_info() {
  return array(
    'commerce_price_raw_amount' => array(
      'label' => t('Raw amount'),
      'field types' => array(
        'commerce_price',
      ),
      'settings' => array(
        'calculation' => FALSE,
      ),
    ),
    'commerce_price_formatted_amount' => array(
      'label' => t('Formatted amount'),
      'field types' => array(
        'commerce_price',
      ),
      'settings' => array(
        'calculation' => FALSE,
      ),
    ),
    'commerce_price_formatted_components' => array(
      'label' => t('Formatted amount with components'),
      'field types' => array(
        'commerce_price',
      ),
      'settings' => array(
        'calculation' => FALSE,
      ),
    ),
  );
}