8,28d7
<   $form["thankyoupage"] = array (
<   	'#type'          => 'fieldset',
<   	'#title'         => t('Thank you page settings'),
<   	'#weight'        => -10,
<   	'#collapsible'   => TRUE,
<   	'#collapsed'     => TRUE,
<   );
< 	$form["thankyoupage"]["{$module}{$type}_thankyoupage_enable"] = array (
< 	  '#type'          => 'checkbox',
< 	  '#title'         => t('Enable thank you page'),
< 	  '#description'   => t('If enabled a thank you page will be displayed after sending instead of redirecting back to the node'),
< 	  '#default_value' => _send_value('thankyoupage_enable', $module, $nodetype, $node),
< 	);
< 	$form["thankyoupage"]["{$module}{$type}_thankyoupage_template"] = array (
< 	  '#type'          => 'textarea',
< 	  '#title'         => t('Thank you page template'),
< 	  '#default_value' => _send_value('thankyoupage_template', $module, $nodetype, $node),
< 	  '#cols'          => 70,
< 	  '#rows'          => 10,
< 	);
< 	$form["thankyoupage"]["{$module}{$type}_thankyoupage_template_format"] = filter_form(_send_value('thankyoupage_template_format', $module, $nodetype, $node), 1, array("{$module}{$type}_thankyoupage_template_format"));
86c65
< 
---
>   
587,615d565
< 	// see if a thank you page should be displayed
< 	$thankyou = _send_value('thankyoupage_enable', $values['module']);
< 	$thankyou_page = _send_value('thankyoupage_template', $values['module']);
< 	if ($thankyou && $thankyou_page) {
< 		// load the page format
< 		$thankyou_page_format = _send_value('thankyoupage_template_format', $values['module']);
< 		
< 		// if we have one node, load it, otherwise
< 		// load all nodes into a container
< 		if (count($values['nids']) > 1) {
< 			global $nodes;
< 			$nodes = Array();
< 			foreach ($values['nids'] as $nid) {
< 				$nodes[$nid] = node_load($nid);
< 			}
< 		}
< 		else {
< 			global $node;
< 			$node = node_load($values['nids'][0]);
< 		}
< 
< 		// filter the thank you page
< 		$thankyou_page = check_markup($thankyou_page, $thankyou_page_format, FALSE);
< 
< 		// theme the thank you page
< 		echo theme('page', $thankyou_page);
< 		exit;
< 	}
< 	
681c631
< 
---
>   
