API page: http://api.drupal.org/api/drupal/modules%21field%21theme%21field.tpl.php/7
It says this in the template file:
THIS FILE IS NOT USED AND IS HERE AS A STARTING POINT FOR CUSTOMIZATION ONLY.
However, the extra divs included in this file were being generated in my theme (Omega) without it being present in my theme's directory. I am building a sub-theme and I did check the theme's core files.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | note_at_top_of-1854074-2.patch | 1.13 KB | jp.stacey |
Comments
Comment #1
jhodgdonSorry about your confusion! The reason is documented here:
http://api.drupal.org/api/drupal/modules!field!field.module/function/the...
Probably we should modify the "this template is not used" line at the top of field.tpl.php to say "See theme_field() for details."
I think this is probably only worth doing in 7.x, since 8.x is converting all theme functions and theme templates into Twig files, so there will not be this confusion there. At least, it will be going away soon.
Comment #2
jp.stacey commentedPatch attached. The documentation did include a duplicate
@see theme_field()but it doesn't actually render inline, so I've replaced it with just... theme_field() ...which, likerender(), should hopefully be turned into a link.Comment #3
kiwimind commentedI like how you've explained a little more why the file is not used, rather than JUST SAYING IT ISN'T. :)
Well worded, reads well, RTBC.
Comment #4
stefan.r commentedComment #5
David_Rothstein commentedCommitted to 7.x - thanks!
Fixed on commit, because it seemed a little confusing to me to say "core" rather than "Drupal core" here: