function theme_pay_money in Pay 7
Same name and namespace in other branches
- 6 theme/pay.theme.inc \theme_pay_money()
Theme function for default money format.
2 theme calls to theme_pay_money()
- pay_progress.tpl.php in modules/
pay_progress/ theme/ pay_progress.tpl.php - theme_pay_activity_list in theme/
pay.theme.inc - Theme function for default money format.
File
- theme/
pay.theme.inc, line 225 - Theme hooks and callbacks for the Payment API.
Code
function theme_pay_money($variables) {
$value = $variables['value'];
$currency = $variables['currency'];
//@todo: Add some logic for handling currencies?
if ($currency == 'USD' || !$currency) {
$symbol = '$';
}
return $symbol . (double) $value;
}