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.
Those already provide a Remove button. Uploading also fails on all files after the first one. Everything gets back to normal after disabling the module. Did not try the dev version.
Furthermore a button instead of a checkbox would be more appropriate for an ajax callback. Also for the sake of similarity with file and image fields where a button is used to remove items.
Hope you get it sorted. Great module. Thanks.
Comment | File | Size | Author |
---|---|---|---|
#1 | exclude_field_types_and_checkbox_replaced_by_button-1694786-2.diff | 1.73 KB | noneTaken |
Comments
Comment #1
noneTaken CreditAttribution: noneTaken commentedThe attached patch should fix the problem. I've encountered problems with the file field, image field and link field. Therefore they will be excluded by default once you apply the patch. Additional, this setting can be altered by implementing hook_field_remove_item_exclude_field_types_alter().
The patch will also replace the checkbox with a button. Like lodandese said, this is a bit more appropriate.
Comment #2
FranciscoLuz CreditAttribution: FranciscoLuz commentedPatch has been pushed. Thank you noneTaken
Comment #3.0
(not verified) CreditAttribution: commentedAdded button instead of checkbox request.