l10n_client.install in Localization client 6.2
Same filename and directory in other branches
Install, update and uninstall functions for the l10n_client module.
File
l10n_client.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the l10n_client module.
*/
/**
* Implements hook_uninstall().
*/
function l10n_client_uninstall() {
// Remove variables.
db_query("DELETE FROM {variable} WHERE name LIKE 'l10n_client_%%'");
}
/**
* Update for new l10n_client_server default value.
*/
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();
}
Functions
Name | Description |
---|---|
l10n_client_uninstall | Implements hook_uninstall(). |
l10n_client_update_6001 | Update for new l10n_client_server default value. |