function currency_form_currency_exchanger_fixed_rates_load in Currency 7.2
Implements menu load callback: checks if CurrencyExchangerFixedRates has a exchange rate.
Parameters
string $currency_code_from:
string $currency_code_to:
Return value
string|false The source currency code if the rate could be found, FALSE if it couldn't.
File
- currency/
currency.module, line 981 - Provides currency information and allows users to add custom currencies.
Code
function currency_form_currency_exchanger_fixed_rates_load($currency_code_from, $currency_code_to) {
$rate = CurrencyExchangerFixedRates::load($currency_code_from, $currency_code_to);
return $rate !== FALSE ? $currency_code_from : FALSE;
}