Have a date limit for the contact form (patch)

Anselm Heaton - August 28, 2008 - 12:47
Project:Email Field
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

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.

AttachmentSize
patch.txt2.95 KB

#1

Anselm Heaton - April 16, 2009 - 13:37

Any chance of getting an answer on this ? I think it's a useful feature :)

#2

mh86 - May 8, 2009 - 14:48
Status:active» needs work

this is a very specific feature. how many people would really make use of it?
changing status to needs work because of

The patch is functional, but still needs a bit of work

#3

Anselm Heaton - May 18, 2009 - 14:59

this is a very specific feature. how many people would really make use of it?

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 ?

 
 

Drupal is a registered trademark of Dries Buytaert.