How to use tokens in Integer field? I'd like to add a 'Year of birth' field to the build-in registration form. Therefore, I created the Integer field 'Year of birth' at Administration &gt; Configuration &gt; People &gt; Account settings.

I set the minimum value to 1900 and the maximum value to 2013. But, instead of '2013', I'd like to use the token [site-date-yyyy], so that I don't have to change the maximum value every year. Unfortunately, only integers are accepted. How can I use a token?
Try the Date module


Install the module
Go to Configuration > Account Settings > Manage Fields tab
Add a date field of type "Date" and widget "Select list"
Hit Save
Deselect every date piece except year
Hit Save field settings.
Check Display on user registration form.
Expand More settings and values
Set starting year and ending year and default value.
Save settings


If you must use a text field, the date field gives you that option as well. You wont be able to set a start or end date, but the module will validate the date is in the proper format.