function migrate_example_wine_uninstall in Migrate 7.2
Same name and namespace in other branches
- 6.2 migrate_example/wine.install.inc \migrate_example_wine_uninstall()
1 call to migrate_example_wine_uninstall()
- migrate_example_uninstall in migrate_example/
migrate_example.install
File
- migrate_example/
wine.install.inc, line 51 - Set up for the wine (advanced) example.
Code
function migrate_example_wine_uninstall() {
migrate_example_wine_content_type_delete();
if ($vids = taxonomy_vocabulary_load_multiple(array(), array(
'machine_name' => 'migrate_example_wine_varieties',
))) {
// Grab key of the first returned vocabulary.
taxonomy_vocabulary_delete(key($vids));
}
if ($vids = taxonomy_vocabulary_load_multiple(array(), array(
'machine_name' => 'migrate_example_wine_regions',
))) {
// Grab key of the first returned vocabulary.
taxonomy_vocabulary_delete(key($vids));
}
if ($vids = taxonomy_vocabulary_load_multiple(array(), array(
'machine_name' => 'migrate_example_wine_best_with',
))) {
// Grab key of the first returned vocabulary.
taxonomy_vocabulary_delete(key($vids));
}
}