From fb816af699ac2dea5931f9d4e36b9e6c7d2c7de2 Mon Sep 17 00:00:00 2001 From: Chun-Huai Cheng Date: Fri, 29 Jun 2018 15:26:14 -0700 Subject: [PATCH] Fixed node title --- mainlab_tripal.module | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mainlab_tripal.module b/mainlab_tripal.module index 5c8ce70..b17a110 100755 --- a/mainlab_tripal.module +++ b/mainlab_tripal.module @@ -302,6 +302,12 @@ function mainlab_tripal_node_view_alter(&$build) { // Hide default templates in this function $node = $build['#node']; + + // Make sure Title doesn't start with a comma for Tripal 3 + if ($build['#entity_type'] == 'TripalEntity') { + $node->title = trim($node->title, ', '); + } + $enabled_themes = variable_get('mainlab_tripal_enabled_themes', array()); // Organism