You are here

function hook_currency_info in Currency 7.2

Expose currencies.

Return value

array An array of Currency objects, keyed by their currency codes.

1 function implements hook_currency_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

currency_currency_info in currency/currency.currency.inc
Implements hook_currency_info().

File

currency/currency.api.php, line 14
API documentation.

Code

function hook_currency_info() {
  $currencies['EUR'] = new Currency(array(
    'ISO4217Code' => 'EUR',
    'sign' => '€',
    'subunits' => 100,
    'title' => t('Euro'),
  ));
  return $currencies;
}