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));
|
$subject = t('!event Payment Required', array('!event' => $event->booking_eventname));
|
||||||
$params['subject'] = $subject;
|
$params['subject'] = $subject;
|
||||||
|
|
||||||
//retrieve the body of the email
|
//retrieve the body of the email for a married couple only if we're combining pricing for couples
|
||||||
$params['body'] = token_replace(variable_get('booking_email_paymentoutstanding_text'), $tokens);
|
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
|
//send the email
|
||||||
drupal_mail('booking', 'registration_mail_bal_outstanding', $to, $language, $params, $from);
|
drupal_mail('booking', 'registration_mail_bal_outstanding', $to, $language, $params, $from);
|
||||||
|
@@ -317,7 +317,7 @@ $booking_registration_intro_text = variable_get('booking_registration_intro_text
|
|||||||
'#default_value' => variable_get('booking_email_paymentoutstanding_text', $booking_email_paymentoutstanding_text),
|
'#default_value' => variable_get('booking_email_paymentoutstanding_text', $booking_email_paymentoutstanding_text),
|
||||||
);
|
);
|
||||||
$form['emails']['booking_email_paymentoutstanding_married_text'] = array(
|
$form['emails']['booking_email_paymentoutstanding_married_text'] = array(
|
||||||
'#title' => t('Email text to send a married couple reminding them of how much they both owe (combined pricing)'),
|
'#title' => t('Email text to send a married couple reminding them of how much they both owe (only applies when combined pricing enabled)'),
|
||||||
'#type' => 'textarea',
|
'#type' => 'textarea',
|
||||||
//'#format' => 'full_html',
|
//'#format' => 'full_html',
|
||||||
'#description' => t(''),
|
'#description' => t(''),
|
||||||
|
Reference in New Issue
Block a user