t('Latitude'), 'longitude' => t('Longitude')); $info = content_types($node->type); $fields = array(); if (@count($info['fields'])) { foreach ($info['fields'] as $field_name => $field) { if (in_array($field['type'], array('location'))) { $fields[$field_name] = $sub_fields; } } } if (count($fields)) { return $fields; } return FALSE; } else if ($op == 'map') { if (is_array($feed_element)) { foreach ($feed_element as $i => $val) { $node->{$field_name}[$i][$sub_field] = $val; } } return $node; } }