function lingotek_uninstall in Lingotek Translation 7.3
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.4 lingotek.install \lingotek_uninstall()
- 7.5 lingotek.install \lingotek_uninstall()
- 7.6 lingotek.install \lingotek_uninstall()
Implements hook_uninstall().
File
- ./
lingotek.install, line 47 - 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');
}