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.

CommentFileSizeAuthor
#4 term_load.patch1021 bytescatch
term_load.patch1.17 KBcatch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch’s picture

Status: Active » Needs review
dawehner’s picture

I read

-    // Avoid calling taxonomy_term_load_multiple because it could lead to
-    // circular references.

Can you explain why this does not lead to circular references?

Status: Needs review » Needs work

The last submitted patch failed testing.

catch’s picture

Status: Needs work » Needs review
FileSize
1021 bytes

hook_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.

mlncn’s picture

Status: Needs review » Reviewed & tested by the community

This 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.

scor’s picture

and we actually have this patch already committed to our RDF repository.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Well that's much nicer.

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -RDF

Automatically closed -- issue fixed for 2 weeks with no activity.