Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
field_attach_preprocess() was (re-)introduced by #367595: Translatable fields, but currently only node module calls it.
Other fieldable entities (users, comments) should call it too. Taxo terms are a little off, because thet're not rendered through a template right now.
Comment | File | Size | Author |
---|---|---|---|
#11 | field_attach_preprocess-560608-11.patch | 1.72 KB | plach |
#9 | field_attach_preprocess-560608-9.patch | 1.71 KB | plach |
#6 | field_attach_preprocess.patch | 1.6 KB | yched |
#4 | 560608.patch | 1.67 KB | pounard |
#3 | 560608.patch | 1.8 KB | pounard |
Comments
Comment #1
plach@yched:
Yes, that's true, although I'm trying to make the UI work with any fieldable entity. However without this themers needing to access the raw field values would still need to specify the langcode (FIELD_LANGUAGE_NONE), so this is needed. Not critical, though.
Comment #2
pounardComment #3
pounardThis is my first shot with field module, patch definitely needs review
Comment #4
pounardProper file (without header junk)
Comment #5
yched CreditAttribution: yched commentedGreat !
Aside from the missing '.' at the end of both
+ // Preprocess fields
comments, this is ready to goComment #6
yched CreditAttribution: yched commentedJust fixed the comments. RTBC.
Comment #8
sun.core CreditAttribution: sun.core commentedThis probably needs a re-roll?
Comment #9
plachRerolled
Comment #11
plachThis should work.
Comment #12
plachGreen. Setting RTBC per #6.
Comment #13
webchickCommitted to HEAD.