It would be useful in certain circumstances to be able to use dates as conditions, e.g. "only enable this context from December 1st through December 31st" or "only enable this context from 7am to 10am".
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | context-n646110.patch | 2.74 KB | damienmckenna |
Comments
Comment #1
damienmckennaA patch that relies upon date_api.module because the core '#date' form field type always assigns a default based on time(). It overrides context_enabled_contexts() and doesn't enable contexts that are out of the configured date range.
Comment #2
steven jones commentedThis is a nice little patch that does open up a few doors, but here's how I reckon this feature needs to progress:
Comment #3
steven jones commentedYeah, just create an addon module.