messageagency/ma_datetime_range_helper

There is no license information available for the latest version (1.3) of this package.

Fixes for datetime range fields

1.3 2023-08-28 17:10 UTC

This package is not auto-updated.

Last update: 2024-04-22 20:34:22 UTC


README

This module provides some functionality to the core datetime_range field type, which is currently experimental. Specifically, it:

  • Unrequires the end date when entering a start date. If no end date is entered, it will populate it with the start date. It is up to the theme to render a field as a single date if the start and end are identical, if thats the idea (and it is).
  • Provides 2 new formatters which very simply only display the start date or end date, respectively.

TODO: It'd be nice to have this functionality:

  • Show or hide the end date and decide whether it is required or not.
  • Choose which date/time components are used: Year, Month, Day, Hour, Minute, Second. Right now, they are all required.
  • Handle 'All day'.

Eventually, as work is continued on the datetime_range module, this helper module may not be required. Related d.o issues: