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.
D7's pattern is to provide a drupal_alter(), so implementing modules can alter the definitions.
Patch will follow.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1916988-conditional-fields-alter-3.patch | 666 bytes | NofarG |
#1 | 1916988-conditional-fields-alter-1.patch | 1.85 KB | amitaibu |
Comments
Comment #1
amitaibuAttached.
Comment #2
NofarG CreditAttribution: NofarG commentedThe alter hook is already provided by features. See features_get_default()
Comment #3
NofarG CreditAttribution: NofarG commentedNew patch attached.
Comment #4
djdevinSeems to be fine in D6 too. Same code.
Comment #5
DamienMcKennaThis is the correct approach.
Comment #6
hefox CreditAttribution: hefox commentedditto, patch looks good
Comment #7
peterpoe CreditAttribution: peterpoe commentedCommitted, thanks!