function _basic_cart_price_format in Basic cart 7.2
Same name and namespace in other branches
- 7.3 basic_cart.cart.inc \_basic_cart_price_format()
Returns the available price formats.
Return value
$formats A list with the available price formats.
1 call to _basic_cart_price_format()
- basic_cart_admin_content_type in ./
basic_cart.admin.inc - Callback for the admin configuration page.
File
- ./
basic_cart.cart.inc, line 281 - Basic cart shopping cart implementation functions.
Code
function _basic_cart_price_format() {
$currency = variable_get('basic_cart_currency');
return array(
0 => t('1 234,00 @currency', array(
'@currency' => $currency,
)),
1 => t('1 234.00 @currency', array(
'@currency' => $currency,
)),
2 => t('1,234.00 @currency', array(
'@currency' => $currency,
)),
3 => t('1.234,00 @currency', array(
'@currency' => $currency,
)),
4 => t('@currency 1 234,00', array(
'@currency' => $currency,
)),
5 => t('@currency 1 234.00', array(
'@currency' => $currency,
)),
6 => t('@currency 1,234.00', array(
'@currency' => $currency,
)),
7 => t('@currency 1.234,00', array(
'@currency' => $currency,
)),
);
}