function commerce_multicurrency_entity_property_info_alter in Commerce Multicurrency 7
Implements hook_entity_property_info_alter().
File
- ./
commerce_multicurrency.module, line 498 - Enhancements for the commerce currency support.
Code
function commerce_multicurrency_entity_property_info_alter(&$info) {
// Add the current user's currency to the site information.
$info['site']['properties']['commerce_currency'] = array(
'label' => t("User's currency"),
'description' => t('The currency to use for the current user.'),
'getter callback' => 'commerce_multicurrency_get_properties',
'type' => 'text',
);
}