In location_entity_field_info_alter, two properties are added to the "location" field type, which is defined in location_cck_field_info. Since the location_cck module is not required by the location_entity module, we should first check if the type exists.

Comments

peterpoe’s picture

Status: Active » Needs review
StatusFileSize
new887 bytes
podarok’s picture

Status: Needs review » Needs work
+++ b/contrib/location_entity/location_entity.module
@@ -9,9 +9,11 @@
+    $field_info['location']['property_callbacks'][] = 'location_entity_field_item_location_property_callback';    ¶

Please, remove ending whitespaces, according to Drupal coding standards

peterpoe’s picture

Status: Needs work » Needs review
StatusFileSize
new883 bytes

  • podarok committed e05e3de on 7.x-3.x authored by peterpoe
    Issue #2496969 by peterpoe: Location field type altered when the type...
podarok’s picture

Status: Needs review » Fixed

Thanks, pushed

Status: Fixed » Closed (fixed)

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