form tweaks
This commit is contained in:
@@ -356,8 +356,9 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) {
|
||||
$data = $form_state['input'];
|
||||
|
||||
//check the selected email type
|
||||
//configure the input text field and textarea based on select field
|
||||
$emailtype = $form_state['input']['email-type'];
|
||||
|
||||
//configure the input text field and textarea based on select field
|
||||
if (strpos($emailtype, 'custom') !== false) {
|
||||
$subject = variable_get('booking_email_subject_' . $emailtype, '');
|
||||
$form['form']['email-definition']['booking_email_subjectline_custom']['#value'] = $subject;
|
||||
@@ -367,8 +368,10 @@ function booking_emails_custom_ajax_form_callback($form, &$form_state) {
|
||||
//watchdog('booking_debug', 'custom text: <pre>@info</pre>', array('@info' => print_r( $text, true)));
|
||||
// TODO : Figure out what this should be if HTML emails are NOT enabled
|
||||
$form['form']['email-definition']['booking_email_body_custom']['value']['#value'] = $text;
|
||||
|
||||
$form['form']['storage']['emailtype'] = $emailtype;
|
||||
}
|
||||
else {
|
||||
$form['form']['email-definition']['booking_email_subjectline_custom']['#value'] = '';
|
||||
$form['form']['email-definition']['booking_email_body_custom']['value']['#value'] = '';
|
||||
}
|
||||
|
||||
//watchdog('booking_debug', 'booking_emails_custom_ajax_form_callback: <pre>@info</pre>', array('@info' => print_r( $form, true)));
|
||||
|
Reference in New Issue
Block a user