Hello,
I would like to change the label and description of my file fields. In my case I have
Alternate Text:
[ input box ]
This text will be used by screen readers, search engines, or when the image cannot be loaded.
[ remove button ]
I would like to change "Alternate Text" to say "Caption" and also be able to change the description under the input box "This text will be used by screen readers, ..."
I've successfully modified node forms in the past using hook form alter & nodeapi in my custom module, but am still a novice in this area of drupal. I've printed out the $form variable but I can't see what I would edit in the $form object to make the desired changes above. Am I going about this wrong? Is there another way?
Thanks for reading,
-Tim
Comments
Comment #1
quicksketchYou might try using ImageField Extended to add a caption field. Changing that text can be rather challenging. Even if you don't use ImageField Extended, you should look at its implementation of hook_elements() to see how it modifies the FileField form, you can do a similar thing to modify the description text of the Alt field.
Comment #2
TimG1 CreditAttribution: TimG1 commentedThanks quicksketch. ImageField Extended did the trick for me. Didn't even know that module existed!
Thanks again,
-Tim
Comment #3
quicksketch