You are here

function _fix_loc_tmp in Location Taxonomize 7

A temporary fix for an apparent bug, due to which the country_name field is not updated during the call to hook_locationapi. Also used to add the country_name and province_name fields to the location in cases where the location is read from the database

1 call to _fix_loc_tmp()
location_taxonomize_process_loc in ./location_taxonomize.module
Determines if a location needs to be taxonomized. If so, it saves the appropriate terms Returns the number of terms added

File

./location_taxonomize.module, line 211

Code

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