You are here

function commerce_currency_get_code in Commerce Core 7

Returns an associative array of the specified currency codes.

Parameters

$enabled: Boolean indicating whether or not to include only enabled currencies.

1 call to commerce_currency_get_code()
commerce_currency_code_options_list in ./commerce.module
Wraps commerce_currency_get_code() for use by the Entity module.
1 string reference to 'commerce_currency_get_code'
commerce_line_item_rules_action_info in modules/line_item/commerce_line_item.rules.inc
Implements hook_rules_action_info().

File

./commerce.module, line 571
Defines features and functions common to the Commerce modules.

Code

function commerce_currency_get_code($enabled = FALSE) {
  return drupal_map_assoc(array_keys(commerce_currencies($enabled)));
}