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

greggles’s picture

from 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?

gordon’s picture

Yes, 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.

greggles’s picture

Status: Active » Postponed

I'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...

dave reid’s picture

Status: Postponed » Closed (won't fix)

I agree this should be won't fix. :)