Index: sites/all/modules/openlayers_proximity/openlayers_proximity.module =================================================================== --- sites/all/modules/openlayers_proximity/openlayers_proximity.module (revision 66) +++ sites/all/modules/openlayers_proximity/openlayers_proximity.module (working copy) @@ -275,14 +275,16 @@ * Implementation of hook_openlayers_proximity_get_types() */ function openlayers_proximity_openlayers_proximity_get_types() { - $types = array(); - $fields = content_fields(); - foreach ($fields as $field) { - if ($field['type'] == OPENLAYERS_PROXIMITY_FIELD_TYPE) { - $types[$field['type_name']] = $field['type_name']; + $proximity_types = array(); + $types = content_types(); + foreach ($types as $type){ + foreach ($type['fields'] as $field){ + if ($field['type'] == OPENLAYERS_PROXIMITY_FIELD_TYPE) { + $proximity_types[$field['type_name']] = $field['type_name']; + } } - } - return $types; + } + return $proximity_types; } /**