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.
Hi all,
I'd like to make it as easy as possible for anon flaggers, and would like to make name and email not required fields.
Can you guys think of any reason why all 3 fields (name, email, reason) are required on the flagging form? If not, I'll try rolling a patch that allows admins to control whether the fields are required or optional.
Thanks in advance.
Greg
Comment | File | Size | Author |
---|---|---|---|
#2 | flag_content.module-patch-90098-non-required-fields.txt | 2.33 KB | Greg Go |
Comments
Comment #1
kbahey CreditAttribution: kbahey commentedHey Greg
Go ahead and roll a later in the week (I am at DrupalCon).
As long as it is backwards compatible, I am cool with it.
Comment #2
Greg Go CreditAttribution: Greg Go commentedHere's a patch to make the flagging fields (name, email, reason) required/optional by admins. This patch adds a fieldset to the flag_content settings page with 3 checkboxes to set the fields for name, email, and reason to required/optional. Sets default to all fields optional, so users don't have to enter anything to flag content.
This was rolled against flag_content 5.x-2.9. I don't have a 6.x version installed anywhere, so hopefully someone can port it to D6.
Comment #3
kbahey CreditAttribution: kbahey commentedThis is committed, and should be in the 5.x-2.x-dev around 9 pm Eastern tonight.
Can someone please port it to 6.x?
Comment #4
dropchew CreditAttribution: dropchew commentedSubscriibe!
Comment #5
chilledoutbeardedman CreditAttribution: chilledoutbeardedman commentedadding 'anonymous flagging' tag to relate this to other projects regarding anonymous flagging.