On line 839 in invite.module, the field is set to preview the message but no value is given. I've written a theme hook for template.php that will add the message back to the invite page:

function mytheme_invite_form($form)
{
	if (arg(0) == 'invite')
	{
		$template = t(_invite_get_mail_template());
		$tokens = _invite_token_types($invite);
		$body = token_replace_multiple($template, $tokens);
  		$form['body'] = array(
			'#type' => 'item',
			'#title' => t('Preview message'),
			'#value' => '<div id="body-preview">' . $body . '</div>',
		);
	}
	return drupal_render($form);
}

Comments

mattcasey’s picture

Issue summary: View changes

incorrectly wrote php tags

BManuel’s picture

Where is the preview suppose to appear

Roze-1’s picture

Subscribe

mattcasey’s picture

Sorry for late response. This is for when you go to the generic invite page, mysite.com/invite

There is also the invite form as a tab in the account section, which I did not include here

mattcasey’s picture

Issue summary: View changes

removing client name from function

ryan osītis’s picture

Issue summary: View changes
Status: Active » Closed (outdated)