Problem/Motivation
Taxonomy terms are fieldable. That means that they could consist of way more information than name and tid.
Using hook_query_term_reference_tree_get_children_alter() you can easily add these fields and their values to the term objects that are used to build the tree.
It would be nice to still have access to these fields in hook_preprocess_checkbox_tree_item() and the corresponding template!
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3346954_4.patch | 721 bytes | mkalkbrenner |
| #2 | 3346954.patch | 1.18 KB | mkalkbrenner |
Comments
Comment #2
mkalkbrennerComment #3
mkalkbrennerThis check is not needed because $e is initialized as array directly above:
That's why I removed the not required if statement here, just because I recognized it.
Comment #4
mkalkbrennerre-roll
Comment #5
mkalkbrenner