function og_vocab_modules_enabled in OG Vocabulary 7
Implements hook_modules_enabled().
Register dynamic migrate plugins for upgrading from OG6.
File
- ./
og_vocab.module, line 1504 - Give each group its own system controlled vocabularies.
Code
function og_vocab_modules_enabled($modules) {
if (!variable_get('og_vocab_7000', FALSE)) {
return;
}
if (!in_array('migrate', $modules) && !module_exists('migrate')) {
return;
}
foreach (node_type_get_names() as $bundle => $value) {
// Register a dynamic migration.
Migration::registerMigration('OgVocabMigrate', 'OgVocabMigrate' . ucfirst($bundle), array(
'bundle' => $bundle,
));
}
}