tweaks
This commit is contained in:
@@ -507,8 +507,6 @@ function booking_manual_email_form($form, &$form_state)
|
||||
*/
|
||||
function _booking_email_get_preview_callback($form, $form_state) {
|
||||
global $event;
|
||||
$markup_pre = "<div id=\"booking_email_preview_wrapper\"><h3>Email Preview</h3><pre>";
|
||||
$markup_post = "</pre><br /><br /></div>";
|
||||
$text = "";
|
||||
$emailtype = $form_state['values']['email-type'];
|
||||
|
||||
@@ -549,7 +547,16 @@ function _booking_email_get_preview_callback($form, $form_state) {
|
||||
//use the html value if it is set, otherwise use the plaintext input which is just a string
|
||||
$text = isset($text['format']) ? $text['value'] : $text;
|
||||
//watchdog('booking_debug', "<pre>Email generation:\n@info</pre>", array('@info' => print_r( $text, true)));
|
||||
|
||||
|
||||
if(variable_get('booking_enable_html_mail', 0) == 1) {
|
||||
$markup_pre = "<div id=\"booking_email_preview_wrapper\"><h3>Email Preview</h3>";
|
||||
$markup_post = "<br /><br /></div>";
|
||||
}
|
||||
else {
|
||||
$markup_pre = "<div id=\"booking_email_preview_wrapper\"><h3>Email Preview</h3><pre>";
|
||||
$markup_post = "</pre><br /><br /></div>";
|
||||
}
|
||||
|
||||
//generate html that will be used to update div booking_email_preview_wrapper
|
||||
return $markup_pre . $text . $markup_post;
|
||||
}
|
||||
|
Reference in New Issue
Block a user