Since variable_variable_type_info() (in variable.variable.inc) doesn't define these variable types with 'token' => TRUE, any 'number'-type variable isn't available via Token. Why weren't these marked as token-able? I have a variable that should be of type 'number,' but since I need it to be available as a token, I'm forced to mark it as type 'string.'

Comments

jose reyero’s picture

Status: Active » Fixed

Ok, added for simple types.

If you want some more types, you'll need to test first that they work properly as tokens. For more complex types I'm not so sure about that.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.