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.
A few weeks ago I decided to play with context condition creation.
I have not had time since to break up the module I used as a sandbox or write tests. The attached tarball holds a context_node module with 6 context node condition plugins:
- Node Author
- Node Author Role
- Node Post Date
- Node Update Date
- Text Format
- Text Filter
Someone, maybe me, should convert each of these to a patch with a test. I've been told Text Format might not fit here.
The dates inherit from a special date condition plugin that provides basic support for date-comparison based node conditions.
Comment | File | Size | Author |
---|---|---|---|
context_node.tgz | 3.14 KB | Grayside |
Comments
Comment #1
Grayside CreditAttribution: Grayside commented#1001412: New Context Conditions: Node Dates contains the date-related plugins mentioned above.
Comment #2
ManyNancy CreditAttribution: ManyNancy commentedThanks a lot for this, I'll be testing it in the future.
Is it possible for this to go into the context module or should this be its own module?
Comment #3
jpstrikesback CreditAttribution: jpstrikesback commented@Grayside I've updated this for D7. Want to drop it in a sandbox and I'll send a patch along?
Cheers,
JP
Comment #4
clemens.tolboom@jpstrikesback it would be great to have a patch for D7