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.
This project is not covered by Drupal’s security advisory policy.
Restricts valid values in date fields, and datepicker popup widget.
This project is compound of a base module providing the API, and several submodules that provide different kind of restrictions.
Submodules
- Date Restrictions Min/Max
- Restricts valid minimum and maximum values to a fixed date, or relative interval. Dates or intervals may be provided statically in the field instance settings, or obtained from other fields attached to the entity. Some examples:
- Reservation dates starting today, or three days ahead.
- +18 years old.
- Dates after, or before, 01/01/2000.
- Date Restrictions Allowed Values
- Restrict allowed values. This module doesn't actually restrict values. It's an API module for other modules integration. See below for some modules implementing allowed values restrictions.
- Date Restrictions Host Entity
- Allow restrictions based on fields in the same entity, within the add/edit form. Restrictions are performed live with ajax. Some examples:
- Dates greater, or lower to the value in another date field of the form.
- Allow dates in (or not in) another date field of the form.
Other modules integrating with Date Restrictions
- Work Calendar
- Restrict allowed dates based on working/holidays calendars.
- Date Restrictions for Commerce line items
- For date fields attached to a commerce line item, allow for restrictions based on fields attached to the product display node.
- Weekdays field
- Allow for restrictions based on week days.
- TODO: Views integration
- Restrict allowed values based on the output of a view.
Support and customizations
The module author provides paid development and consulting services. Contact Jonathan Araña Cruz.
You can also support this module by giving cash gifts via Gratipay.
Project information
- Ecosystem: Date
- 435 sites report using this module
- Created by jonhattan on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.