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

coredumperror’s picture

I 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.

coredumperror’s picture

Status: Active » Fixed

I'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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.