This patch allows you to reorder the Flags fieldset which displays on a new node creation form.

Comments

quicksketch’s picture

Status: Needs review » Needs work

Nice! Just the way I'd want it implemented. One thing though, we shouldn't be filtering by the current user. In a rare situation, it might be possible to have a user that didn't have any flags listed on the node type, but another user does for that same type. Then the administrator that rearranges the fields would end up rearranging all the fields except for the Flag fieldset.

So basically, we should just list the flag fieldset based on any flags existing with the "show_on_form" property, rather than filtering to the current user.

sirkitree’s picture

Status: Needs work » Needs review
StatusFileSize
new1.45 KB

This more of what you had in mind?

quicksketch’s picture

Status: Needs review » Fixed
StatusFileSize
new1.38 KB

Nice, exactly. I applied the patch and found that the "$node" variable didn't exist, it should be $form['#node']. After making that change everything worked perfectly. Committed attached patch. Thanks sirkitree!

Status: Fixed » Closed (fixed)

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

Gabriel R.’s picture

Hey, it works, thanks :-)