Browse Source

Ignore analysis submodules from lagacy templates

Chun-Huai Cheng 7 years ago
parent
commit
016c9d5984
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tripal_chado/includes/tripal_chado.migrate.inc

+ 2 - 1
tripal_chado/includes/tripal_chado.migrate.inc

@@ -549,7 +549,8 @@ function tripal_chado_get_tripal_v2_content_type_options($all_option = FALSE, $h
     $options['all'] = 'All';
   }
   while ($obj = $result->fetchObject()) {
-    if ($has_template) {
+    // Ignore analysis sub modules
+    if ($has_template && !preg_match('/^chado_analysis_.+$/', $obj->type)) {
       $mod = str_replace('chado_', 'tripal_', $obj->type);
       $mod_dir = drupal_get_path('module', $mod);
       if (file_exists($mod_dir . '/theme/templates/' . $mod . '_base.tpl.php')) {