You are here

function commerce_price_components_field_formatter_prepare_view in Commerce price by components 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_components.module, line 115
Module file for Price by components.

Code

function commerce_price_components_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);
  }
}