You are here

function location_update_2 in Location 7.3

Same name and namespace in other branches
  1. 5.3 location.install \location_update_2()
  2. 5 location.install \location_update_2()
  3. 5 location_upgrade.php \location_update_2()
  4. 6.3 location.install \location_update_2()
  5. 7.5 location.install \location_update_2()
  6. 7.4 location.install \location_update_2()

Legacy update 2.

Fix a bug with the "us" entry in the "location_configured_countries" var.

File

./location.install, line 334
Install, update and uninstall functions for the location module.

Code

function location_update_2() {
  $configured_countries = variable_get('location_configured_countries', array());
  if ($configured_countries['us']) {
    $configured_countries['us'] = 'us';
    variable_set('location_configured_countries', $configured_countries);
  }
  return array();
}