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.
When creating an iCal view using iCal Entity, fields created by the Location module are not available in the list of fields for the iCal LOCATION field.
I have modified the .module file to support fields created by the Location module, and I've modified the date_ical_plugin_row_ical_entity.inc file so that it outputs the location information. A patch will follow shortly.
Comment | File | Size | Author |
---|---|---|---|
#1 | location_module_support-2150071-1.patch | 1.47 KB | kpaxman |
Comments
Comment #1
kpaxman CreditAttribution: kpaxman commentedAttached is my patch. I had to decide which fields provided by location to display, and ended up pulling in the name of the location plus the full address, but not the latitude and longitude.
Comment #2
coredumperror CreditAttribution: coredumperror commentedThanks for contributing! I've applied and looked over your patch, and it seems fine, so I pushed it up to git.
BTW, love your username. Reminds me of Kevin Spacey for some reason... ;)
Comment #3
kpaxman CreditAttribution: kpaxman commentedIt appears that at some point the $locations that I used became $locations_data...except on line 278 where it's the singular $location_data. All instances of the variable name need to be the same for it to work. :)
Comment #4
kpaxman CreditAttribution: kpaxman commentedComment #5
coredumperror CreditAttribution: coredumperror commented*facepalm*... I'm a dumbass.
I pushed the fix to git.