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.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | AddSupportForContribDateFieldType-2842612-3-7.x-2.x.patch | 876 bytes | hugronaphor |
Comments
Comment #2
hugronaphor CreditAttribution: hugronaphor at Acrosto for Dropsolid commentedHere is the patch.
Comment #3
hugronaphor CreditAttribution: hugronaphor at Acrosto for Dropsolid commented*Here is the patch
Comment #4
Jelle_SIf I'm not mistaken you can implement hook_ctools_plugin_pre_alter() and change
$plugin['validator']['class']
to your custom class to overwrite it.Comment #5
hugronaphor CreditAttribution: hugronaphor at Acrosto for Dropsolid commentedYes, 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.