function tmgmt_modules_installed in Translation Management Tool 7
Same name and namespace in other branches
- 8 tmgmt.module \tmgmt_modules_installed()
Implements hook_modules_installed().
File
- ./
tmgmt.module, line 238 - Main module file for the Translation Management module.
Code
function tmgmt_modules_installed($modules) {
foreach (tmgmt_translator_plugin_info() as $key => $info) {
// Check if this translator plugin has been added by one of the recently
// installed modules and doesn't prevent auto creation.
if ((!isset($info['auto create']) || $info['auto create'] == TRUE) && in_array($info['module'], $modules)) {
tmgmt_translator_auto_create($key);
}
}
}