In my Drupal 7 site, I have an image field called field_photos where users can upload an unlimited number of images, plus an alt description for each one.
I would like to print the alt description as caption for the image. How can I do this?
I know that I have to use my tpl.php file, but I am note sure which variable to use represent the alt value of an image field (especially when a field can have an unlimited number of values).
You should be able override theme_image_formatter() which is called in image_field_formatter_view().