Эх сурвалжийг харах

Set default title for project entities

Stephen Ficklin 7 жил өмнө
parent
commit
54898a3d7e

+ 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,
     );
   }
+  if ($table == 'project') {
+    $format[] = array(
+      'format' => '[schema__name]',
+      'weight' => -5,
+    );
+  }
   return $format;
 }