Hi,

Is it possible to do hook_form_alter to change the "Upload" label to something else? I have done 10000 searches on Google but failed. When var_dump the $form, i cannot see the field element to make change.

Many thanks,

Comments

quicksketch’s picture

You can do this but it's a bit tricky. I'd suggest looking at FileField Sources or ImageField Extended, both of which significantly modify the normal FileField upload form. You'll be able to use the same approach to change the Upload label.

Another option is simply using String Overrides, but that will change the word "Upload" anywhere where it is a stand-along word in the entire Drupal site (though maybe that's what you want).

tm01xx’s picture

Thanks for your help. i will give them a try soon.

quicksketch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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