Hi folks

I do I change the range of years appearing in the birthday form ( in the select field relative to year? )

By deafult ot goes up to 2050

In birthdays.module line 252 there is

$options_years = $options_years + drupal_map_assoc(range(1900, 2050));

I tried changing the 2050 to something like 1985 but no result. I still get years up to 2050..

Somebody could say that he was born in the future!!!

Is there a fix for this because if so I cannot seem to find it..

Thanks in advance

Comments

maartenvg’s picture

Priority: Critical » Normal
Status: Active » Closed (won't fix)

As far as I know this can't be fixed without hacking core, this is because profile.module uses the core 'date' form field which is hardcoded from 1900 till 2050. Because the way the forms are generated, I have no way of intercept this and alter it before it's shown.

Line 252 is for the dropdown list on the birthdays page to filter the year. It has nothing to do with the form in the profile.

brollo’s picture

Does this mean I need to hack the core form.inc script?!?

I mean, birthdays as a module should NOT allow negative birthdays I think! Makes no sense!!

maartenvg’s picture

Status: Closed (won't fix) » Closed (duplicate)