You are here

function money_token_list in Money field 5

Implementation of hook_token_list().

File

./money.module, line 404
This module defines the "money" CCK field. It uses the Currency API, which is included in the Currency module, to get a list of valid currencies.

Code

function money_token_list($type = 'all') {
  if ($type == 'field' || $type == 'all') {
    $tokens = array();
    $tokens['money']['money'] = t('The combination of both the currency and the amount.');
    $tokens['money']['currency'] = t('A 3-letter ISO currency code.');
    $tokens['money']['amount'] = t('An amount, formatted as specified in the field settings.');
    return $tokens;
  }
}