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 should behave like taxonomy-term reference field.
Comment | File | Size | Author |
---|---|---|---|
#8 | 1821060_8.patch | 3.71 KB | amitaibu |
#7 | 1821060_followup.patch | 705 bytes | amateescu |
#4 | 1821060-er-optgroup-7.patch | 12.49 KB | amitaibu |
#3 | 1821060-er-term-widget-2.patch | 2.06 KB | amitaibu |
#3 | optgroup.jpg | 6.53 KB | amitaibu |
Comments
Comment #1
amitaibuExtend term's
getReferencableEntities()
Comment #2
amitaibuComment #3
amitaibuPatch supports OptGroups in case of multiple bundles.
Comment #4
amitaibuAdapted tests.
Comment #5
amitaibuComment #6
amitaibuCommitted.
I have created a change-record -- http://drupal.org/node/1824434
Comment #7
amateescu CreditAttribution: amateescu commentedI think here you only want this:
Patch attached :)
Comment #8
amitaibuPatch makes sure getReferencableEntities() return the bundle's machine-name. and hook_options_list() changes that to the label.
Comment #9
amitaibuCommitted. Going to re-roll 8.x accordingly.