function payment_currency_options in Payment 7
Returns an options list of currencies.
Return value
array Keys are ISO 4217 codes and values are currency titles.
2 calls to payment_currency_options()
- paymentform_field_instance_settings_form in modules/
paymentform/ paymentform.module - Implements hook_field_instance_settings_form().
- paymentreference_field_instance_settings_form in modules/
paymentreference/ paymentreference.module - Implements hook_field_instance_settings_form().
File
- ./
payment.module, line 1122 - Hook implementations and shared functions.
Code
function payment_currency_options() {
$version = payment_currency_version();
if ($version == 2) {
return currency_options();
}
if ($version == 1) {
return currency_api_get_list();
}
return array();
}