This will
# allow RDF to inject stuff into the default field formatter.
# allow taxonomy module to take advantage of entity-level caching from http://drupal.org/project/entitycache and it's own internal cache if terms are loaded elsewhere in the page.
# get rid of a direct query for taxonomy_term_data() since we have so few now it's a shame to leave any in.
# allow themers to do stuff in the field templates without writing a new formatter.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | term_load.patch | 1021 bytes | catch |
| term_load.patch | 1.17 KB | catch |
Comments
Comment #1
catchComment #2
dawehnerI read
Can you explain why this does not lead to circular references?
Comment #4
catchhook_field_load() could lead to circular references, hook_field_formatter_prepare_view() doesn't - that comment was left over from before #493314: Add multiple hook for formatters went in.
Comment #5
mlncn commentedThis is a less is more kind of patch!
Terms added (have to manually add a vocabulary to content type in current head); Everything works as advertised.
Comment #6
scor commentedand we actually have this patch already committed to our RDF repository.
Comment #7
webchickWell that's much nicer.
Committed to HEAD. Thanks!