function hook_currency_info_alter in Currency 7.2
Alter exposed currencies.
Parameters
array: An array of Currency objects, keyed by their currency codes.
Return value
NULL
File
- currency/
currency.api.php, line 33 - API documentation.
Code
function hook_currency_info_alter(array $currencies) {
// Let's pretend the euro has 1000 subunits.
$currencies['EUR']['subunits'] = 1000;
}