function _invite_update_tokens in Invite 7.2
Same name and namespace in other branches
- 5.2 invite.install \_invite_update_tokens()
- 5 invite.install \_invite_update_tokens()
- 6.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 158 - 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);
}
}
}