Closed (fixed)
Project:
Variable
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2011 at 22:50 UTC
Updated:
20 Feb 2012 at 17:50 UTC
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
Comment #1
jose reyero commentedOk, 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.