You are here

function timezone_detect_update_7100 in Timezone Detect 7

Migrate variable used for saving timezone detection mode.

File

./timezone_detect.install, line 84
(Un)installs the Timezone Detect module.

Code

function timezone_detect_update_7100() {
  $current_mode = variable_get('timezone_detect_update_timezone_every_login', TIMEZONE_DETECT_MODE_DEFAULT);
  variable_set('timezone_detect_mode', $current_mode);
  variable_del('timezone_detect_update_timezone_every_login');
}