Updated email info for married people
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user