You are here

function _money_get_digit_group_separator in Money field 5

Get the digit group separator from a variable, use the default if the variable is empty.

Parameters

$digit_group_separator: A variable that possibly contains a digit group separator.

Return value

A digit group separator, either the variable or the default (a space).

5 calls to _money_get_digit_group_separator()
money_field in ./money.module
Implementation of hook_field().
money_field_formatter in ./money.module
Implementation of hook_field_formatter().
money_field_settings in ./money.module
Implementation of hook_field_settings().
money_widget in ./money.module
Implementation of hook_widget().
_money_amount_to_integer in ./money.module
Convert the amount (a string entered by the user) to an integer.

File

./money.module, line 488
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_get_digit_group_separator($digit_group_separator = NULL) {
  return !empty($digit_group_separator) ? $digit_group_separator : ' ';
}