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.
It seems very counterintuitive to adjust the order of things by entering integers into fields on this page: /admin/config/user-interface/vertical_tabs_config/order
We already have a page where we adjust the order of things on entity add/edit forms, it's the Field UI. Instead of this page, I would like to recommend that we add each of these items to the list of fields in Field UI by implementing hook_field_extra_fields
and allowing users to drag-and-drop them into place.
Comment | File | Size | Author |
---|---|---|---|
#5 | vertical_tabs_order.png | 135.51 KB | rcodina |
#5 | move_vertical_tab-2809005-5.patch | 4.2 KB | rcodina |
Comments
Comment #2
rcodina CreditAttribution: rcodina commentedImproving this not my priority right now. Anyway, I don't have any idea of how to implement this (I checked out hook's doc but I don't see how it applies in my case). Any working example? In any case, patches are welcome. I will be glad to check out them and push the improvements to repository.
Comment #3
oschuetze CreditAttribution: oschuetze commentedNevertheless, a draggable sorting list would be fine ;-)
Comment #4
rcodina CreditAttribution: rcodina commented@oschuetze It's just a matter of having free time to do it ;)
Comment #5
rcodina CreditAttribution: rcodina commentedFirst patch implementing this. Only thing pending is make admin form to render the vertical tabs list given its weight.
Comment #7
rcodina CreditAttribution: rcodina commentedFully functional on dev version. Please test it and give me feedback.
Comment #8
rcodina CreditAttribution: rcodina commentedComment #9
rcodina CreditAttribution: rcodina commentedRelease 1.2 done with this.