function invite_update_10 in Invite 5.2
Same name and namespace in other branches
- 5 invite.install \invite_update_10()
- 6.2 invite.install \invite_update_10()
- 7.2 invite.install \invite_update_10()
Update tokens for security.
File
- ./
invite.install, line 331 - Installation file for invite module.
Code
function invite_update_10() {
// E-mail template
$old = array(
'[invite-message]',
'[inviter]',
);
$new = array(
'[invite-message-raw]',
'[inviter-raw]',
);
_invite_update_tokens('invite_default_mail_template', $old, $new);
// E-mail name and subject
_invite_update_tokens(array(
'invite_email_name',
'invite_subject',
), '[inviter]', '[inviter-raw]');
$ret = array(
array(
'query' => 'The tokens for the invite module have been successfully updated.',
'success' => TRUE,
),
);
return $ret;
}