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.

CommentFileSizeAuthor
location_map_link.patch423 bytesbkat

Comments

seanemmett’s picture

As 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!

yesct’s picture

Status: Active » Fixed

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

Status: Fixed » Closed (fixed)

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