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.
The following pages don't have primary buttons:
- admin/config/people/accounts/fields
- admin/config/people/accounts/form-display
- admin/config/people/accounts/display
- admin/config/people/accounts/display/compact
- admin/config/people/accounts/display/full
Comment | File | Size | Author |
---|---|---|---|
#5 | 2229157-primary-button5.png | 96.1 KB | tompagabor |
#4 | 2229157-primary_button_types_account_forms-4.patch | 1.93 KB | chrisfromredfin |
#3 | 2229157-more-button1.png | 64.96 KB | tompagabor |
#2 | 2229157-primary_button_types_account_forms-2.patch | 1.51 KB | chrisfromredfin |
Comments
Comment #1
LewisNymanComment #2
chrisfromredfinThis is actually a fix in the field_ui base classes so this might have larger-scale implications (in a good way).
Comment #3
tompagabor CreditAttribution: tompagabor commentedTested, and it works on these URL-s too:
admin/config/people/accounts/display/compact
admin/config/people/accounts/display/full
Suggestions:
1 - remove whitespace:
2229157-primary_button_types_account_forms-2.patch:12: trailing whitespace.
'#button_type' => 'primary',
2229157-primary_button_types_account_forms-2.patch:28: trailing whitespace.
'#type' => 'submit',
2 - We can add primary class to the ajax forms on the manage display pages. I atttach a screenshot about it:
Comment #4
chrisfromredfinSure! Fixed the trailing whitespace and added support for the field settings on manage display in the base class. Also updated issue summary.
Comment #5
tompagabor CreditAttribution: tompagabor commentedLooks good!
Please test one more person, and if everything is OK, then go RTBC.
Comment #6
tompagabor CreditAttribution: tompagabor commented4: 2229157-primary_button_types_account_forms-4.patch queued for re-testing.
Comment #7
tompagabor CreditAttribution: tompagabor commentedI tested it again.
Everything is working.
Comment #8
webchickVery nice! :)
Committed and pushed to 8.x. Thanks!