Changing the weight of Flag checkboxes in the node edit form
jim0203 - July 30, 2009 - 19:33
| Project: | Flag |
| Version: | 6.x-1.1 |
| Component: | Flag core |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I've got a content type for which three different flags can be set while a piece of content is being created or edited. These three flags are grouped together in a collapsible fieldset. This fieldset appears right in the middle of my content type's create/edit form. How can I change the weight of the fieldset so that it appears at the top of the form?

#1
This would be possible if hook_content_extra_fields() were implemented as recommended in #295044: Default Flag Fieldset collapsed. Unfortunately unless that is done the only way is to write a hook_form_alter() function in a custom module.
#2
Great, thanks. I've written a very quick tutorial on the simplest way to implement this; see http://state68.com/content/changing-position-flags-node-edit-form.
#3
This was implemented in #489056: Reorder Flag's fieldset for CCK and will be in the 1.2 version of Flag.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.