Updated email info for married people

This commit is contained in:
2014-01-29 22:47:23 +11:00
parent 286a263c8b
commit 358b7fdca8
2 changed files with 11 additions and 3 deletions

View File

@@ -143,8 +143,16 @@ function _booking_balance_payment_email($nid)
$subject = t('!event Payment Required', array('!event' => $event->booking_eventname));
$params['subject'] = $subject;
//retrieve the body of the email
$params['body'] = token_replace(variable_get('booking_email_paymentoutstanding_text'), $tokens);
//retrieve the body of the email for a married couple only if we're combining pricing for couples
if (variable_get('booking_enable_combined_pricing', 0) == 1 && $node->booking_partner_id > 0)
{
$params['body'] = token_replace(variable_get('booking_email_paymentoutstanding_married_text'), $tokens);
}
//otherwise retrieve the body of the email for individuals
else
{
$params['body'] = token_replace(variable_get('booking_email_paymentoutstanding_text'), $tokens);
}
//send the email
drupal_mail('booking', 'registration_mail_bal_outstanding', $to, $language, $params, $from);