You are here

function commerce_price_components_field_formatter_info in Commerce price by components 7

Implements hook_field_formatter_info().

File

./commerce_price_components.module, line 11
Module file for Price by components.

Code

function commerce_price_components_field_formatter_info() {
  return array(
    'commerce_price_components' => array(
      'label' => t('Price by components'),
      'field types' => array(
        'commerce_price',
      ),
      'settings' => array(
        'calculation' => 'calculated_sell_price',
        'commerce_price_components' => array(
          'base_price' => TRUE,
        ),
      ),
    ),
  );
}