function updatePledgePayments($pledgeId, $paymentStatusId, $paymentIds) {
$result = updatePledgePayments($pledgeId, $paymentStatusId, $paymentIds = NULL);
function updatePledgePayments($pledgeId, $paymentStatusId, $paymentIds) {
$result = updatePledgePayments($pledgeId, $paymentStatusId, $paymentIds = NULL);