You are here

function hook_commerce_price_formatted_components_alter in Commerce Core 7

Lets modules alter price components prior to display through the "Formatted amount with components" display formatter.

Parameters

&$components: The array of totaled price components.

$price: The price array the components came from.

$entity: The entity the price belongs to.

See also

commerce_price_field_formatter_view()

1 invocation of hook_commerce_price_formatted_components_alter()
commerce_price_field_formatter_view in modules/price/commerce_price.module
Implements hook_field_formatter_view().

File

modules/price/commerce_price.api.php, line 135
Hooks provided by the Price module.

Code

function hook_commerce_price_formatted_components_alter(&$components, $price, $entity) {

  // No example.
}