You are here

function commerce_multicurrency_get_properties in Commerce Multicurrency 7

Entity metadata callback: returns the current user's currency.

See also

commerce_multicurrency_entity_property_info_alter()

1 string reference to 'commerce_multicurrency_get_properties'
commerce_multicurrency_entity_property_info_alter in ./commerce_multicurrency.module
Implements hook_entity_property_info_alter().

File

./commerce_multicurrency.module, line 513
Enhancements for the commerce currency support.

Code

function commerce_multicurrency_get_properties($data, array $options, $name) {
  switch ($name) {
    case 'commerce_currency':
      return commerce_multicurrency_get_user_currency_code();
  }
}