You are here

function geoip_update_6000 in GeoIP API 6

Same name and namespace in other branches
  1. 7 geoip.install \geoip_update_6000()

We're changing the default path. If it's been working for them make sure it is set and not relying on the default value.

File

./geoip.install, line 12
Installation and update functions.

Code

function geoip_update_6000() {
  $previous_path = variable_get('geoip_data_file', drupal_get_path('module', 'geoip') . '/data/GeoIP.dat');
  if (isset($previous_path) && file_exists($previous_path)) {
    variable_set('geoip_data_file', $previous_path);
  }
  return array();
}