As there is no way to override CvDateDateFormatValidator class, we can not add support for other(extended) date types.

The known modules extending Date with new field types are:
- Datepicker
- Date Icon

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hugronaphor created an issue. See original summary.

hugronaphor’s picture

Category: Feature request » Task
Status: Active » Needs review

Here is the patch.

hugronaphor’s picture

*Here is the patch

Jelle_S’s picture

Category: Task » Support request
Priority: Major » Normal

If I'm not mistaken you can implement hook_ctools_plugin_pre_alter() and change $plugin['validator']['class'] to your custom class to overwrite it.

hugronaphor’s picture

Yes, you're completely right.

But, since we have contrib modules extending the original date popup, I thought it wouldn't harm to have the support for those.