You are here

function currency_api_get_symbols in Currency 6

Same name and namespace in other branches
  1. 5 currency_api/currency_api.module \currency_api_get_symbols()
  2. 7 currency_api/currency_api.module \currency_api_get_symbols()

Returns an array of all currency symbols.

1 call to currency_api_get_symbols()
currency_api_get_symbol in currency_api/currency_api.module
Returns the symbol for a currency code.

File

currency_api/currency_api.module, line 293
This module provides an API for currency conversion.

Code

function currency_api_get_symbols() {
  static $symbols;
  if (!isset($symbols)) {
    $currencies = currency_api_get_currencies();
    $symbols = array();
    foreach ($currencies as $code => $currency) {
      $symbols[$code] = $currency['symbol'];
    }
  }
  return $symbols;
}