function select2_get_system_decimal_point in Select 2 7
Get locale decimal.
1 call to select2_get_system_decimal_point()
- select2_taxonomy_term_reference_validate in ./
select2.module - Validate term references.
File
- ./
select2.module, line 1004 - Main file for Select2 module.
Code
function select2_get_system_decimal_point() {
$dp =& drupal_static(__FUNCTION__, FALSE);
if (!$dp) {
$locale_info = localeconv();
$dp = $locale_info['decimal_point'];
}
return $dp ? $dp : '.';
}