Hello,

I created a date field which only requires users to fill hour and minutes. I'm planning on using it to show regular time schedules. I have "required" the to date field, but in the form I would like to change the labels "From Date" and "To Date" to "From" and "To" so that it is not confusing for users to fill the form.

Is this something I could do with hook_form_alter? I looked into the date module to find where the label is added, unsuccessfully.

Thanks for your help,

Comments

arlinsandbulte’s picture

arlinsandbulte’s picture

Status: Active » Closed (duplicate)
gafir777’s picture

Hi arlinsandbulte:

The duplicate issue you linked to is for Drupal 7. My question is pertaining to Drupal 6.

So there is no way to change "From Date" and "To Date" labels? These strings must come from somewhere in the module, no? I can't seem to find where though.

michellezeedru’s picture

Subscribing - would like to be able to do this as well

baronmunchowsen’s picture

I had a very quick look at using a form_alter to change these values, then thought I would quickly try the (fantastic) String Overrides module, which allows you to override any string - as the name suggests. Works for me so far. Hopefully it works for someone else.

http://drupal.org/project/stringoverrides

Cheers!