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.
Instead of looping over all fields, we could simplify the flow and use hook_field_widget_multivalue_form_alter()
to disable the fields.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3097677-2.patch | 9.76 KB | JeroenT |
use_hook_field_widget_form_alter.patch | 9.73 KB | JeroenT |
Comments
Comment #2
JeroenTMoved the code from
hook_field_widget_form_alter()
tohook_field_widget_multivalue_form_alter()
so this patch also works for paragraphs.Comment #3
JeroenTComment #4
JeroenTComment #6
JeroenTCommitted and pushed to 8.x-2.x.