Closed (won't fix)
Project:
Token
Version:
5.x-1.6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2007 at 06:35 UTC
Updated:
6 Mar 2010 at 21:16 UTC
Hi,
A nice feature would be to have a settings page that will allow system admins to set the start and end delimiters for the entire site.
Comments
Comment #1
gregglesfrom line 30 of token.inc they default to []
function token_replace($original, $type = 'global', $object = NULL, $leading = '[', $trailing = ']') {
You would prefer being able to set the value that they default to, is that right?
Can you expand on how that would be useful?
Comment #2
gordon commentedYes, basically if you don't like using [] as the start and end tokens, the admin can go to the settings page and change these to what ever they want. % for example, which has been a popular choice over the years.
Comment #3
gregglesI'm inclined to "won't fix" this feature but will postpone it for now. Consuming modules set the values that they want. I don't see how an admin setting makes this any easier to interact with the module because then the consuming module would have to pay attention to that variable as well.
Also, the point of this module is to provide an API which generally doesn't include a UI. This feature of dubious value would require the addition of a UI...
Comment #4
dave reidI agree this should be won't fix. :)