You are here

function currency_admin_settings in Currency 6

Same name and namespace in other branches
  1. 5 currency.module \currency_admin_settings()
  2. 7 currency.module \currency_admin_settings()

Menu callback; module settings form.

1 string reference to 'currency_admin_settings'
currency_menu in ./currency.module
Implementation of hook_menu().

File

./currency.module, line 46
This module provides currency exchange rates.

Code

function currency_admin_settings() {
  $form['currency_default_from'] = array(
    '#type' => 'textfield',
    '#title' => t('Default Currency From'),
    '#default_value' => variable_get('currency_default_from', 'CAD'),
    '#size' => 3,
    '#maxlength' => 3,
    '#description' => t('Three letter symbol for default currency to convert from.'),
  );
  $form['currency_default_to'] = array(
    '#type' => 'textfield',
    '#title' => t('Default Currency To'),
    '#default_value' => variable_get('currency_default_to', 'USD'),
    '#size' => 3,
    '#maxlength' => 3,
    '#description' => t('Three letter symbol for default currency to convert to.'),
  );
  $form['currency_description'] = array(
    '#type' => 'textarea',
    '#title' => t('Currency form text'),
    '#default_value' => variable_get('currency_description', t('You can use this form to do currency exchange.')),
    '#description' => t('Text to display on the top of the currency form.'),
  );
  return system_settings_form($form);
}