You are here

function i18n_string_refresh_uninstalled_modules in Internationalization 7

Purge uninstalled modules.

1 call to i18n_string_refresh_uninstalled_modules()
i18n_string_modules_uninstalled in i18n_string/i18n_string.module
Implements hook_modules_uninstalled().

File

i18n_string/i18n_string.admin.inc, line 194
Helper functions for string administration.

Code

function i18n_string_refresh_uninstalled_modules($modules) {
  foreach ($modules as $module) {

    // If the module defines any textgroup, purge all strings.
    module_load_include('i18n.inc', $module);
    if ($string_info = module_invoke($module, 'i18n_string_info')) {
      foreach ($string_info as $group => $group_info) {
        i18n_string_refresh_reset($group);
        i18n_string_refresh_cleanup($group);
      }
    }
  }
}