Introduction
This small module customizes a built-in DateTime field exposed views filter, provided by the datetime module.
It provides a list of built-in date ranges (like Last Month, Last Year, etc), that automatically pre-populates filters.
If a user decides to select the "Custom" range, then normal max / min filters will appear.
Installation / Usage
1. Download this module and enable it :)
2. At settings form for DateTime exposed filter, you should see a small checkbox "Use defined date ranges for this field.". If enabled, time ranges select will appear at exposed filter form.
Motivation
This module was created as a utility module for a quicker selection of time filters for the timesheet. Most usable was filtering for last month and the current year. As I wasn't able to achieve it using a built-in offsets facility, I decided to create this small module for this goal.
API
Please check date_with_defined_ranges.api.php for details
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.34 sites report using this module
- Created by jsobiecki on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
