Closed (outdated)
Project:
Invite
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2011 at 02:36 UTC
Updated:
14 May 2020 at 22:55 UTC
Jump to comment: Most recent
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
Comment #0.0
mattcasey commentedincorrectly wrote php tags
Comment #1
BManuel commentedWhere is the preview suppose to appear
Comment #2
Roze-1 commentedSubscribe
Comment #3
mattcasey commentedSorry 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
Comment #3.0
mattcasey commentedremoving client name from function
Comment #4
ryan osītis commented