You are here

function commerce_multicurrency_menu in Commerce Multicurrency 7

Implements hook_menu().

File

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

Code

function commerce_multicurrency_menu() {
  $items = array();
  $items['admin/commerce/config/currency/conversion'] = array(
    'title' => 'Currency conversion',
    'description' => 'Configure currency conversion.',
    'page provider' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_multicurrency_conversion_settings_form',
    ),
    'access arguments' => array(
      'configure store',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'commerce_multicurrency.admin.inc',
    'weight' => 1,
  );
  $items['admin/commerce/config/currency/handling'] = array(
    'title' => 'Currency handling',
    'description' => 'Configure currency handling.',
    'page provider' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_multicurrency_handling_settings_form',
    ),
    'access arguments' => array(
      'configure store',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'commerce_multicurrency.admin.inc',
    'weight' => 2,
  );
  $items['commerce_currency_select/%'] = array(
    'title' => 'Set Active Currency',
    'page callback' => 'commerce_multicurrency_set_user_currency_code_callback',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'page arguments' => array(
      1,
    ),
  );
  return $items;
}