function commerce_multicurrency_set_user_currency_code_callback in Commerce Multicurrency 7
Handles requests to the currency set menu callback.
Parameters
string $currency_code: The currency code to set the user currency to.
1 string reference to 'commerce_multicurrency_set_user_currency_code_callback'
- commerce_multicurrency_menu in ./
commerce_multicurrency.module - Implements hook_menu().
File
- ./
commerce_multicurrency.module, line 411 - Enhancements for the commerce currency support.
Code
function commerce_multicurrency_set_user_currency_code_callback($currency_code) {
// Ensure this page isn't cached.
drupal_page_is_cacheable(FALSE);
commerce_multicurrency_set_user_currency_code($currency_code);
drupal_goto('<front>');
}