function geoip_update_6000 in GeoIP API 7
Same name and namespace in other branches
- 6 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.
Return value
array
File
- ./
geoip.install, line 14 - 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();
}