You are here

function location_taxonomize_location_fixup in Location Taxonomize 7.2

Adds the country name and province name fields to a Location

2 calls to location_taxonomize_location_fixup()
location_taxonomize_location_bulk_taxonomize_op in location_taxonomize_location/location_taxonomize_location.module
Runs the bulk taxonomize operation
location_taxonomize_location_submitt in location_taxonomize_location/location_taxonomize_location.module
Submit handler for forms with Location fields in them

File

location_taxonomize_location/location_taxonomize_location.inc, line 83
Some useful functions for Location taxonomize

Code

function location_taxonomize_location_fixup($loc) {
  if (isset($loc['country'])) {
    $loc['country_name'] = location_country_name($loc['country']);
    if (isset($loc['province'])) {
      $loc['province_name'] = location_province_name($loc['country'], $loc['province']);
    }
  }
  return $loc;
}