瀏覽代碼

Set default title for project entities

Stephen Ficklin 7 年之前
父節點
當前提交
54898a3d7e
共有 1 個文件被更改,包括 6 次插入0 次删除
  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;
 }