Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Wouldn't it be possible to enable or disable this function on a form by form basis? I have a couple webforms I would like cleared after submission/email and a couple others that are not even emailed, that I want to be stored in the DB.
Comment | File | Size | Author |
---|---|---|---|
#7 | webform_clear-selective-2057119-7.patch | 18.64 KB | stefan.r |
#7 | interdiff.txt | 638 bytes | stefan.r |
#5 | interdiff.txt | 2.6 KB | stefan.r |
#5 | webform_clear-selective-2057119-5.patch | 18.6 KB | stefan.r |
#3 | webform_clear-selective-2057119-3.patch | 18.11 KB | stefan.r |
Comments
Comment #1
richsky CreditAttribution: richsky commentedThat make sense
Comment #2
Stephen OllmanSecond / Third this functional option. Would be great.
Comment #3
stefan.r CreditAttribution: stefan.r commentedComment #4
stefan.r CreditAttribution: stefan.r commentedThis version introduces a setting to either clear webforms:
- never
- immediately
- after 1 day
- after 1 week
- after 1 month
A default can be set globally that can be overridden on a per form basis by users with the right permission.
The default is "never" right now, however in 1.1 this was "immediately", so maybe an update hook would be in order, just to maintain compatibility with 1.1?
Comment #5
stefan.r CreditAttribution: stefan.r commentedUpgrade hook added that changes the default value to "delete immediately" for people upgrading from
version 1.1 in order to maintain backwards compatibility.
Comment #6
caspervoogt CreditAttribution: caspervoogt commented+1 for being able to set this on a form by form basis
Comment #7
stefan.r CreditAttribution: stefan.r commentedChanged update hooks to reflect 2.0 versioning
Comment #9
stefan.r CreditAttribution: stefan.r commentedImplemented in 2.0