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.
I have what feels like a million dates that have been set up with a start and end date as separate fields. This is good enough for exporting iCal feeds for the most part, but I would like the ones that have an end date to properly export. There is far too much data - and custom code too - to change the event content type now.
Any tips on where to look to start patching/hooking date iCal so I can use the second field as an end date?
Comments
Comment #1
coredumperror CreditAttribution: coredumperror commentedI believe that you could accomplish this using the
hook_date_ical_export_raw_event_alter()
hook. It should let you set the end date value for each event to the value from a different date field on the node. The documentation for that hook is in the date_ical.api.php file, and I think the second chunk of example code in the function may be especially useful for you.Comment #2
coredumperror CreditAttribution: coredumperror commentedI'm going to assume from the lack of response that my advice was helpful, so I'm marking this issue as fixed. If you still need help, please come back and set the issue back to Active.