function currency_options in Currency 7.2
Returns an options list of currencies.
Return value
array Keys are ISO 4217 codes and values are currency titles.
5 calls to currency_options()
- CurrencyViewsHandlerFilter::get_value_options in currency/
includes/ CurrencyViewsHandlerFilter.inc - Overrides parent::get_value_options().
- CurrencyViewsHandlerFilterWebTestCase::testCurrencyAmountViewsHandlerField in currency/
tests/ CurrencyViewsHandlerFilterWebTestCase.test - Tests CurrencyAmountViewsHandlerField.
- currency_exchange_rate_db_table_form_global_configuration in currency_exchange_rate_db_table/
currency_exchange_rate_db_table.module - Implements form build callback: the global configuration form.
- currency_form_currency_amount_process in currency/
currency.module - Implements form process callback for a currency_amount element.
- currency_form_currency_exchanger_fixed_rates in currency/
currency.module - Implements form build callback: CurrencyExchangerFixedRates' add/edit form.
1 string reference to 'currency_options'
- currency_webform_select_options_info in currency/
currency.module - Implements hook_webform_select_options_info().
File
- currency/
currency.module, line 462 - Provides currency information and allows users to add custom currencies.
Code
function currency_options() {
ctools_include('export');
$options = array();
foreach (currency_load_all() as $currency) {
$options[$currency->ISO4217Code] = t('@currency_title (@currency_code)', array(
'@currency_title' => $currency
->translateTitle(),
'@currency_code' => $currency->ISO4217Code,
));
}
natcasesort($options);
return $options;
}