1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- function tripal_chado_migrate_tripal_content_type($type = array()) {
-
-
- $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 = array(
- 'sync_node' => 1,
- 'bundle_name' => $bundle_name
- );
- tripal_chado_publish_records($value);
- }
|