function l10n_update_modules_uninstalled in Localization update 7
Same name and namespace in other branches
- 7.2 l10n_update.module \l10n_update_modules_uninstalled()
Implements hook_modules_uninstalled().
Remove data of uninstalled modules from {l10n_update_file} table and rebuild the projects cache.
File
- ./
l10n_update.module, line 148 - Download translations from remote localization server.
Code
function l10n_update_modules_uninstalled($modules) {
db_delete('l10n_update_file')
->condition('project', $modules)
->execute();
// Rebuild {l10n_update_project} table.
// Just like the system table, the project table holds both enabled and
// disabled projects. Full control over its content is not possible.
// To minimize polution we flush it here. The cost of rebuilding is small
// compared to the {l10n_update_file} table.
db_delete('l10n_update_project')
->execute();
module_load_include('project.inc', 'l10n_update');
l10n_update_build_projects();
}