You are here

function theme_pay_money in Pay 6

Same name and namespace in other branches
  1. 7 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 211
Theme hooks and callbacks for the Payment API.

Code

function theme_pay_money($value, $currency) {

  //@todo: Add some logic for handling currencies?
  if ($currency == 'USD' || !$currency) {
    $symbol = '$';
  }
  return $symbol . (double) $value;
}