123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- function chado_migrate_tripal_content_type($type = []) {
-
- $term = tripal_load_term_entity($type);
-
- if (!$term) {
- print("Creating bundle for term '" . $type['term_name'] . "'...\n");
- $success = tripal_create_bundle($type);
- $term = tripal_load_term_entity($type);
- }
-
- $bundle_name = 'bio_data_' . $term->id;
-
- $value = [
- 'sync_node' => 1,
- 'bundle_name' => $bundle_name,
- ];
- chado_publish_records($value);
- }
|