You are here

function commerce_default_currency in Commerce Core 7

Returns the currency code of the site's default currency.

9 calls to commerce_default_currency()
commerce_currency_load in ./commerce.module
Returns a single currency array.
commerce_currency_settings_form in includes/commerce_ui.admin.inc
Builds the currency settings form.
commerce_line_items_total in modules/line_item/commerce_line_item.module
Returns the total price amount and currency of an array of line items.
commerce_order_calculate_total in modules/order/commerce_order.module
Calculates the order total, updating the commerce_order_total field data in the order object this function receives.
commerce_payment_order_transaction_add_form in modules/payment/includes/commerce_payment.forms.inc
Allows an administrator to choose a payment method type and add a transaction for a specific order.

... See full list

1 string reference to 'commerce_default_currency'
commerce_uninstall in ./commerce.install
Implements hook_uninstall().

File

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

Code

function commerce_default_currency() {
  $currency_code = variable_get('commerce_default_currency', 'USD');
  drupal_alter('commerce_default_currency', $currency_code);
  return $currency_code;
}