function commerce_price_decimals_for_all_field_formatter_info_alter in Commerce Price Decimals Formatter 7
Implements hook_field_formatter_info_alter().
File
- modules/
commerce_price_decimals_for_all.module, line 12 - Add support for other modules can use the format of Commerce Price Decimmals Formmater
Code
function commerce_price_decimals_for_all_field_formatter_info_alter(&$info) {
// Alter Commerce Price Savings Formatter module.
if (isset($info['commerce_price_savings_formatter_formatter'])) {
$info['commerce_price_savings_formatter_formatter']['settings']['currencies'] = commerce_price_decimals_formatter_get_default_currencies_settings();
}
if (isset($info['commerce_price_savings_formatter_inline'])) {
$info['commerce_price_savings_formatter_inline']['settings']['currencies'] = commerce_price_decimals_formatter_get_default_currencies_settings();
}
}