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
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

quicksketch - August 2, 2009 - 00:25

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

jim0203 - August 12, 2009 - 13:11

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

quicksketch - September 14, 2009 - 14:43
Status:active» fixed

This was implemented in #489056: Reorder Flag's fieldset for CCK and will be in the 1.2 version of Flag.

#4

System Message - September 28, 2009 - 14:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.