You are here

function invite_update_10 in Invite 5

Same name and namespace in other branches
  1. 5.2 invite.install \invite_update_10()
  2. 6.2 invite.install \invite_update_10()
  3. 7.2 invite.install \invite_update_10()

Update tokens for security.

File

./invite.install, line 308

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;
}