You are here

function _token_replace_tokens in Token 5

2 calls to _token_replace_tokens()
token_replace in ./token.module
Return the value of $original, with all instances of placeholder tokens replaced by their proper values. To replace multiple types at once see token_replace_multiple().
token_replace_multiple in ./token.module
Return the value of $original, with all instances of placeholder tokens replaced by their proper values. Contrary to token_replace(), this function supports replacing multiple types.

File

./token.module, line 266
The Token API module.

Code

function _token_replace_tokens($original, $tokens, $values, $leading, $trailing) {
  $tokens = token_prepare_tokens($tokens, $leading, $trailing);
  return str_replace($tokens, $values, $original);
}