I am trying to change the "alt" and title" labels in the Image Widget on the node add form.
I have tried both of these hooks:
hook_field_widget_form_alter
hook_form_alter
I was unable to find where I needed to go to successfully alter the label. Could some one please direct me to the appropriate way to hook into this and alter them? I'm hitting these from a custom module if it makes a difference. Hitting them via the theme would be fine for me as well.
Any ideas anyone?
You have to add an extra Proccess function for the widget form.
You can also use dpm($element) with Devel module to find more details about available keys, options etc.
See a similar issue: https://drupal.stackexchange.com/questions/32861/how-do-i-alter-image-field-code-without-hacking-core