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.

CommentFileSizeAuthor
context_node.tgz3.14 KBGrayside
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Grayside’s picture

#1001412: New Context Conditions: Node Dates contains the date-related plugins mentioned above.

ManyNancy’s picture

Thanks 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?

jpstrikesback’s picture

@Grayside I've updated this for D7. Want to drop it in a sandbox and I'll send a patch along?

Cheers,
JP

clemens.tolboom’s picture

Issue summary: View changes

@jpstrikesback it would be great to have a patch for D7