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.

CommentFileSizeAuthor
#1 location_module_support-2150071-1.patch1.47 KBkpaxman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kpaxman’s picture

Status: Active » Needs review
FileSize
1.47 KB

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

coredumperror’s picture

Title: Support locations created by the locations module » Support for the Location module
Status: Needs review » Fixed

Thanks 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... ;)

kpaxman’s picture

It 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. :)

kpaxman’s picture

Status: Fixed » Needs review
coredumperror’s picture

Status: Needs review » Fixed

*facepalm*... I'm a dumbass.

I pushed the fix to git.

Status: Fixed » Closed (fixed)

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