I'm not getting any "See Maps: Google Maps" links in drupal 6. I traced it down to template_preprocess_location in location.module
if (isset($variables['hide']['map_link']) && !$variables['hide']['map_link']) {
$variables['map_link'] = location_map_link($location);
}
I changed it to
if (!isset($variables['hide']['map_link']) || !$variables['hide']['map_link']) {
$variables['map_link'] = location_map_link($location);
}and its working. My $variables['hide'] is empty so the original version would always fail.
| Comment | File | Size | Author |
|---|---|---|---|
| location_map_link.patch | 423 bytes | bkat |
Comments
Comment #1
seanemmett commentedAs much as I hate diddling with code that I don't fully understand (but I can't run patches so I had no choice), this did the trick for me.
Thanks so much for posting this!
Comment #2
yesct commentedThis does not apply to the newest version anymore. I think it might be fixed in the newest version without needing the patch. I'll mark this fixed, but If you still have the problem in the newest version, just post back.