You are here

function currency_menu in Currency 5

Same name and namespace in other branches
  1. 6 currency.module \currency_menu()
  2. 7.2 currency/currency.module \currency_menu()
  3. 7 currency.module \currency_menu()

File

./currency.module, line 13

Code

function currency_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/currency',
      'title' => t('Currency'),
      'description' => t('Settings for currency exchange rates.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'currency_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'currency',
      'title' => t('Currency exchange'),
      'access' => user_access('use currency'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'currency_form',
      ),
    );
  }
  return $items;
}