You are here

function commerce_price_decimals_formatter_field_formatter_prepare_view in Commerce Price Decimals Formatter 7

Implements hook_field_formatter_prepare_view().

Rely on the default implementation of prices.

See also

commerce_price_field_formatter_prepare_view

File

./commerce_price_decimals_formatter.module, line 80
Provides a display formatter for the price field in which you can specify the decimal places are displayed.

Code

function commerce_price_decimals_formatter_field_formatter_prepare_view($entity_type, $entities, $field, $instances, $langcode, &$items, $displays) {

  // Allow other modules to prepare the item values prior to formatting.
  foreach (module_implements('commerce_price_field_formatter_prepare_view') as $module) {
    $function = $module . '_commerce_price_field_formatter_prepare_view';
    $function($entity_type, $entities, $field, $instances, $langcode, $items, $displays);
  }
}