Simply put, I'd like to check if the 'From date' is after the 'to date' and if it is, instead of throwing an error message, Id like to set the 'From date' equal to the 'To date'.

So I'm looking for a way of achieving this without hacking the module, which means performing my validation before the date module performs its check (and resultant error message)

I tried configuring a rule that fires when 'content is about to be saved' using Rules module, but the Date module seems to get there first with its error message. I'd be grateful for any other pointers.

Comments

arlinsandbulte’s picture

No idea if this is any help, but here is a module for custom cck validations:
http://drupal.org/project/validation_api

arlinsandbulte’s picture

Status: Active » Fixed

Potential solution offered, no feedback.
Re-Open if you still need help with this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.