Quellcode durchsuchen

Set default title for project entities

Stephen Ficklin vor 7 Jahren
Ursprung
Commit
54898a3d7e
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  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,
     );
   }
+  if ($table == 'project') {
+    $format[] = array(
+      'format' => '[schema__name]',
+      'weight' => -5,
+    );
+  }
   return $format;
 }