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.
This will allow re-using of _options_properties() when type doesn't exist, thus preventing a WSOD.
Comment | File | Size | Author |
---|---|---|---|
#2 | _options_properties-init-value-1.patch | 440 bytes | amitaibu |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedForgot patch?
Comment #2
amitaibuoops :)
Comment #3
yched CreditAttribution: yched commentedI'm not sure I see the use case of "reusing _options_properties() when type doesn't exist", but the change is good coding practice anyway, so RTBC.
Comment #4
webchickCommitted to HEAD, thanks!
Comment #5
amitaibuthanks,
@yched,
Just to clearify - the OG field #type changes according to existing values. So if there are no existing groups then #type = 'item'. otherwise, OG passes the correct type to _options_properties().