You are here

function _invite_update_tokens in Invite 6.2

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

Helper function to update tokens.

2 calls to _invite_update_tokens()
invite_update_10 in ./invite.install
Update tokens for security.
invite_update_7 in ./invite.install
Switch to token.module.

File

./invite.install, line 155
Installation file for invite module.

Code

function _invite_update_tokens($variables, $old, $new) {
  foreach ((array) $variables as $variable) {
    if ($value = variable_get($variable, NULL)) {
      $value = str_replace($old, $new, $value);
      variable_set($variable, $value);
    }
  }
}