Problem/Motivation
i18n_field_field_attach_view_alter() currently uses field_read_instance but according to the documentation it's preferable to use field_info_instance since the latter supports caching.
Proposed resolution
Replace field_read_instance by field_info_instance or add documentation why the use of field_read_instance is necessary.
Remaining tasks
Clarifying if the use of field_read_instance is intentionally.
User interface changes
none
API changes
none
| Comment | File | Size | Author |
|---|---|---|---|
| i18n-i18n_fields-use-field_info_instance.patch | 771 bytes | das-peter |
Comments
Comment #0.0
webflo commentedFixed field_info_instance link.
Comment #1
webflo commentedThis looks good. Its a nice performance enhancement and saves one query per rendered field.
Commit d8cb931 on 7.x-1.x
Thanks!
Comment #2.0
(not verified) commentedFixed field_info_instance link.