Very small and simple change. Preferred over Quickfix.
So let's make them.
The last submitted patch, , failed testing.
My bad.
Re-test of buttons_container.patch from comment @comment was requested by casey.
So.. what does this do?
I'm with webchick ... it is not entirely clear what bug we're fixing here. Let's get some clarification.
This is a most welcomed patch that will make it a lot easier to theme the form buttons as a group in their own container.
Before this patch, for example the node creation form, the Submit and Preview button are displayed inline without any grouping container:
<input type="submit" class="form-submit" value="Save" id="edit-submit" name="op"> <input type="submit" class="form-submit" value="Preview" id="edit-preview" name="op">
Once this patch is applied, through the form API, a container is added around the form buttons:
<div class="form-wrapper" id="buttons-wrapper"> <input type="submit" class="form-submit" value="Save" id="edit-submit" name="op"> <input type="submit" class="form-submit" value="Preview" id="edit-preview" name="op"> </div>
This is best-practice and not necessarily a bug, but rather an oversight. Marking this as a feature request instead.
If you care to see the code that runs for #container elements, see
http://api.drupal.org/api/function/theme_container/7 http://api.drupal.org/api/function/form_process_container/7
Thanks for the explanation. That helps. Committed to CVS HEAD.
Automatically closed -- issue fixed for 2 weeks with no activity.
Restoring issue tags, see #2125755: System messages removed all issue tags during D7 upgrade.
Comments
Comment #2
dave reidMy bad.
Comment #4
moshe weitzman commentedComment #5
webchickSo.. what does this do?
Comment #6
dries commentedI'm with webchick ... it is not entirely clear what bug we're fixing here. Let's get some clarification.
Comment #7
xmacinfoThis is a most welcomed patch that will make it a lot easier to theme the form buttons as a group in their own container.
Before this patch, for example the node creation form, the Submit and Preview button are displayed inline without any grouping container:
Once this patch is applied, through the form API, a container is added around the form buttons:
This is best-practice and not necessarily a bug, but rather an oversight. Marking this as a feature request instead.
Comment #8
moshe weitzman commentedIf you care to see the code that runs for #container elements, see
http://api.drupal.org/api/function/theme_container/7
http://api.drupal.org/api/function/form_process_container/7
Comment #9
dries commentedThanks for the explanation. That helps. Committed to CVS HEAD.