You are here

function l10n_client_update_6001 in Localization client 6.2

Update for new l10n_client_server default value.

File

./l10n_client.install, line 19
Install, update and uninstall functions for the l10n_client module.

Code

function l10n_client_update_6001() {
  $server_setting = variable_get('l10n_client_server', NULL);
  if (!variable_get('l10n_client_use_server', FALSE) && empty($server_setting) && !is_null($server_setting)) {

    // User saved empty translation server setting, and has sharing disabled now.
    // Drop the setting to fall back on the new localize.drupal.org default.
    // User will get new default when she enables sharing.
    variable_del('l10n_client_server');
  }
  return array();
}