Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294703

Support multiple instances of the same token type in token replacement

$
0
0

We should be able to do something like the following in core.

<?php
$string
= 'The first node is [node1:title] and the other node is [node2:title]';
$string = token_replace($string, array('node1'=> $node1, 'node2'=> $node2));
?>

Viewing all articles
Browse latest Browse all 294703

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>