Have a date limit for the contact form (patch)
| Project: | Email Field |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Hi, I would like (and did an initial implementation of) the following feature :
Feature description
Have a date limit, such that the contact form is not available after that date. This would be usefull, for instance, to stop people emailing about projects that are not active anymore.
Discussion
I guess there are two approaches : have a date field as part as the email input widget ; or re-use a field on the form.
The first approach is more integrated, and doesn't require the user to create an extra field him or herself. The second approach is more effective, and re-uses existing components.
Patch
I went for the second approach (re-use existing field), as it seemed more effective not to re-implement a widget I could easily get with the date module.
The patch is functional, but still needs a bit of work - there is a little bit of (non-critical) functionality in a theming function.
| Attachment | Size |
|---|---|
| patch.txt | 2.95 KB |

#1
Any chance of getting an answer on this ? I think it's a useful feature :)
#2
this is a very specific feature. how many people would really make use of it?
changing status to needs work because of
#3
I don't know, but I couldn't see a way to write this feature as an external module... Maybe we could think of way that the email module could be extended by external modules ?