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.
Pointed by sun while discussing #626354: Remove #process pattern from number field:
We don't need to prefix the key of the 'add more' button in the $form structure - basically:
- $form_element[$field_name . '_add_more'] = array(
+ $form_element['add_more'] = array(
Unneeded cruft, the #name property already contains all the info needed to differentiate between the several buttons in the page.
Comment | File | Size | Author |
---|---|---|---|
field_rename_add_more.patch | 1.65 KB | yched | |
Comments
Comment #1
yched CreditAttribution: yched commentedDoh, FF preselected a wrong component for me...
Comment #2
sunNo, that's Dreditor :) It stores the last selected component for each project. ;)
Can you roll patches with diff -up, please, so we can see the context of the changes? :)
Comment #3
yched CreditAttribution: yched commentedach - I new I started seeing this at some point, but did not connect with dreditor.
diff -up: I know, sorry, Eclipse patches here :-(
Comment #4
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!