Index: sites/all/modules/contrib/location/contrib/location_cck/location_cck.module IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- sites/all/modules/contrib/location/contrib/location_cck/location_cck.module (date 1392892657000) +++ sites/all/modules/contrib/location/contrib/location_cck/location_cck.module (revision ) @@ -163,7 +163,18 @@ ); location_save_locations($items, $criteria); } + } elseif ($entity_type == 'user') { + if (!empty($items)) { + // Store instances of locations by field name and vid. + $criteria = array( + 'genid' => 'cck:' . $field['field_name'] . ':' . $entity->uid, + 'vid' => 0, + 'nid' => 0, + 'uid' => $entity->uid, + ); + location_save_locations($items, $criteria); - } + } + } elseif (!empty($items)) { list($id, $vid, $bundle) = entity_extract_ids($entity_type, $entity); // Store instances of locations by field name and vid. @@ -188,6 +199,17 @@ 'genid' => 'cck:' . $field['field_name'] . ':' . $entity->vid, 'vid' => $entity->vid, 'nid' => $entity->nid, + ); + location_save_locations($items, $criteria); + } + } elseif ($entity_type == 'user') { + if (!empty($items)) { + // Store instances of locations by field name and vid. + $criteria = array( + 'genid' => 'cck:' . $field['field_name'] . ':' . $entity->uid, + 'vid' => 0, + 'nid' => 0, + 'uid' => $entity->uid, ); location_save_locations($items, $criteria); }