function lingotek_uninstall in Lingotek Translation 7.4
Same name and namespace in other branches
- 6 lingotek.install \lingotek_uninstall()
- 7.7 lingotek.install \lingotek_uninstall()
- 7.2 lingotek.install \lingotek_uninstall()
- 7.3 lingotek.install \lingotek_uninstall()
- 7.5 lingotek.install \lingotek_uninstall()
- 7.6 lingotek.install \lingotek_uninstall()
Implements hook_uninstall().
File
- ./
lingotek.install, line 51 - Installation for Lingotek Community Translation Module.
Code
function lingotek_uninstall() {
global $conf;
foreach (array_keys($conf) as $key) {
if (strpos($key, 'lingotek_') === 0) {
// It's important to use === instead of == with strpos()
variable_del($key);
}
}
db_drop_field('languages', 'lingotek_enabled');
db_drop_field('languages', 'lingotek_locale');
db_drop_field('locales_target', 'translation_agent_id');
db_drop_table('lingotek_config_metadata');
db_drop_table('lingotek_translation_agent');
}