Browse Source

Set default title for project entities

Stephen Ficklin 7 years ago
parent
commit
54898a3d7e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tripal_chado/includes/tripal_chado.entity.inc

+ 6 - 0
tripal_chado/includes/tripal_chado.entity.inc

@@ -185,6 +185,12 @@ function tripal_chado_tripal_default_title_format($bundle, $available_tokens) {
       'weight' => -5,
       'weight' => -5,
     );
     );
   }
   }
+  if ($table == 'project') {
+    $format[] = array(
+      'format' => '[schema__name]',
+      'weight' => -5,
+    );
+  }
   return $format;
   return $format;
 }
 }