You are here

function _money_get_decimal_separator in Money field 5

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

Parameters

$decimal_separator: A variable that possibly contains a decimal separator.

Return value

A decimal separator, either the variable or the default (a comma).

5 calls to _money_get_decimal_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 475
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_decimal_separator($decimal_separator = NULL) {
  return !empty($decimal_separator) ? $decimal_separator : ',';
}